babel-plugin-dynamic-import-system-import
v1.0.0
Published
Babel plugin to transpile import() to System.import()
Maintainers
Readme
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-devUsage
Via .babelrc (Recommended)
.babelrc
{
"plugins": ["dynamic-import-system-import"]
}Via CLI
$ babel --plugins dynamic-import-system-import script.jsVia Node API
require('babel-core').transform('code', {
plugins: ['dynamic-import-system-import']
});