You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
452 B
452 B
babel-plugin-syntax-dynamic-import
Allow parsing of import()
.
Installation
$ npm install babel-plugin-syntax-dynamic-import
Usage
Via .babelrc
(Recommended)
.babelrc
{
"plugins": ["syntax-dynamic-import"]
}
Via CLI
$ babel --plugins syntax-dynamic-import script.js
Via Node API
require("babel-core").transform("code", {
plugins: ["syntax-dynamic-import"]
});