项目原始demo,不改动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
wa1k3r 7502571d8f upload all преди 4 години
..
lib [Version] V.3.8 преди 4 години
node_modules upload all преди 4 години
src [Version] V.3.8 преди 4 години
CHANGELOG.md [Version] V.3.8 преди 4 години
LICENSE [Version] V.3.8 преди 4 години
README.md [Version] V.3.8 преди 4 години
package.json [Version] V.3.8 преди 4 години

README.md

Dynamic import support in acorn

This is plugin for Acorn - a tiny, fast JavaScript parser, written completely in JavaScript.

For more information, check out the proposal repo.

Usage

You can use this module directly in order to get Acorn instance with plugin installed:

import acorn from 'acorn-dynamic-import';
// or...
const acorn = require('acorn-dynamic-import').default;

Or you can use inject.js for injecting plugin into your own version of Acorn like this:

const acorn = require('acorn-dynamic-import/lib/inject').default(require('./custom-acorn'));

Then, use the plugins option whenever you need to support dynamicImport while parsing:

const ast = acorn.parse(code, {
  plugins: { dynamicImport: true }
});

License

This plugin is issued under the MIT license.