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

babel-plugin-transform-modules-esl

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-modules-esl

适合esl的模块转换器

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

babel-plugin-transform-modules-esl

Installation

$ npm install babel-plugin-transform-modules-esl --save-dev

Usage

.babelrc

{
  "plugins": ["transform-modules-esl"]
}

Via CLI

$ babel --plugins transform-modules-esl script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["transform-modules-esl"]
});

because of the difference between es2015 module and amd module, this plugin don't support named export and default export at the same time.

  • import * as foo from 'foo' and import foo from 'foo' are equal
  • export foo; export default foo; will throw: 'esl module don't support export default foo and , export foo both, please choose one

Keywords

FAQs

Package last updated on 22 Feb 2016

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