$ npm install babel-plugin-syntax-dynamic-import
Allow parsing of import()
.
$ npm install babel-plugin-syntax-dynamic-import
.babelrc
(Recommended).babelrc
{
"plugins": ["syntax-dynamic-import"]
}
$ babel --plugins syntax-dynamic-import script.js
require("babel-core").transform("code", {
plugins: ["syntax-dynamic-import"]
});
© 2010 - cnpmjs.org x YWFE | Home | YWFE