babel-plugin-dynamic-import-system-import

1.0.0 • Public • Published

babel-plugin-dynamic-import-system-import

Babel plugin to transpile import() to System.import().

NOTE: Babylon >= v6.12.0 is required to correct parse dynamic imports.

Installation

$ npm install babel-plugin-dynamic-import-system-import --save-dev

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["dynamic-import-system-import"]
}

Via CLI

$ babel --plugins dynamic-import-system-import script.js

Via Node API

require('babel-core').transform('code', {
  plugins: ['dynamic-import-system-import']
});

Package Sidebar

Install

npm i babel-plugin-dynamic-import-system-import

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • chicoxyzzy