aboutsummaryrefslogtreecommitdiff
path: root/node_modules/acorn-dynamic-import/README.md
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-09-20 02:56:13 +0200
committerFlorian Dold <florian.dold@gmail.com>2018-09-20 02:56:13 +0200
commitbbff7403fbf46f9ad92240ac213df8d30ef31b64 (patch)
treec58400ec5124da1c7d56b01aea83309f80a56c3b /node_modules/acorn-dynamic-import/README.md
parent003fb34971cf63466184351b4db5f7c67df4f444 (diff)
downloadwallet-core-bbff7403fbf46f9ad92240ac213df8d30ef31b64.tar.xz
update packages
Diffstat (limited to 'node_modules/acorn-dynamic-import/README.md')
-rwxr-xr-xnode_modules/acorn-dynamic-import/README.md18
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).