source: frontend/node_modules/acorn-import-phases/README.md

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 763 bytes
Line 
1# Support for `import defer` and `import souce` in acorn
2
3## Install
4
5```
6npm install acorn-import-phases
7```
8
9## Usage
10
11This module provides a plugin that can be used to extend the Acorn Parser class:
12
13```js
14const {Parser} = require('acorn');
15const importPhases = require('acorn-import-phases');
16Parser.extend(importPhases()).parse('...');
17```
18
19By default, the plugin supports both `import defer` and `import source` syntax. You can disable one of them by passing an options object:
20
21```js
22const {Parser} = require('acorn');
23const importPhases = require('acorn-import-phases');
24Parser.extend(importPhases({ defer: false })).parse('...');
25Parser.extend(importPhases({ source: false })).parse('...');
26```
27
28## License
29
30This plugin is released under an MIT License.
Note: See TracBrowser for help on using the repository browser.