Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-module-provider

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-module-provider

Imports modules for every file.

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
27
decreased by-40%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 31 Dec 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc