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.
Michael Winter 555e2c196e | 5 years ago | |
---|---|---|
.. | ||
lib | 5 years ago | |
README.md | 5 years ago | |
package.json | 5 years ago |
README.md
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"]
});