babel-plugin-syntax-dynamic-import
Allow parsing of import()
Last updated 2 years ago by hzoo .
MIT · Repository · Original npm · Tarball
$ cnpm install babel-plugin-syntax-dynamic-import 
SYNC missed versions from official npm registry.

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"]
});
Downloads
Today 514
This Week 514
This Month 95,501
Last Day 1,452
Last Week 42,423
Last Month 186,923
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (692)

Copyright 2014 - 2016 © taobao.org |