diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
commit | bbff7403fbf46f9ad92240ac213df8d30ef31b64 (patch) | |
tree | c58400ec5124da1c7d56b01aea83309f80a56c3b /node_modules/acorn-dynamic-import/README.md | |
parent | 003fb34971cf63466184351b4db5f7c67df4f444 (diff) |
update packages
Diffstat (limited to 'node_modules/acorn-dynamic-import/README.md')
-rwxr-xr-x | node_modules/acorn-dynamic-import/README.md | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/node_modules/acorn-dynamic-import/README.md b/node_modules/acorn-dynamic-import/README.md index 8fcd583f7..5c326a495 100755 --- a/node_modules/acorn-dynamic-import/README.md +++ b/node_modules/acorn-dynamic-import/README.md @@ -28,6 +28,24 @@ const ast = acorn.parse(code, { }); ``` +To use the updated walk functionality the process is similar. You can require the default implementation as: + +```js +import walk from 'acorn-dynamic-import/lib/walk'; +// or... +const dynamicImportWalk = require('acorn-dynamic-import/lib/walk').default; +``` + +Or you can use the injectable version for injecting the new walk functionality into your own version of Acorn like this: + +```js +import { inject } from 'acorn-dynamic-import/lib/walk'; +import acornWalk from 'acorn/dist/walk'; + +const walk = inject(acornWalk); + +``` + ## License This plugin is issued under the [MIT license](./LICENSE). |