Socket
Socket
Sign inDemoInstall

babel-plugin-module-provider

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    babel-plugin-module-provider

Imports modules for every file.


Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
1
Install size
6.70 kB
Created
Weekly downloads
 

Readme

Source

Module Provider

This plugin simply adds imports to the top of all of your files so you can spend more time writing the code that matters.

Examples

Default imports:

.babelrc :

{
  "presets": ["es2015"],
  "plugins": [
    ["modules-provider", {
      "@cycle/core": "Cycle",
      "@cycle/dom": "CycleDOM"
    }]
  ]
}

This configuration will put this at the top of your files

import Cycle from "@cycle/core";
import CycleDOM from "@cycle/core";
Non-default imports:

.babelrc :

{
  "presets": ["es2015"],
  "plugins": [
    ["modules-provider", {
      "@cycle/dom": ["div", "h2", "h4"]
    }]
  ]
}

This configuration will place this at the top of your files

import {div, h2, h4} from "@cycle/dom"

Keywords

FAQs

Last updated on 31 Dec 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc