From bbff7403fbf46f9ad92240ac213df8d30ef31b64 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 20 Sep 2018 02:56:13 +0200 Subject: update packages --- node_modules/acorn-dynamic-import/README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'node_modules/acorn-dynamic-import/README.md') 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). -- cgit v1.2.3