We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The docs state the link between require('acorn') and dist/acorn.js, but I see no mention of accessing dist/loose_parser via a require interface.
require('acorn')
dist/acorn.js
dist/loose_parser
Previously, back in the 0.x days, I could access the loose parser via require('acorn/acorn_loose');. Unsure and confused about how to do it now.
require('acorn/acorn_loose');
The text was updated successfully, but these errors were encountered:
require('acorn/dist/acorn_loose') should do the trick. Let me know if that doesn't work.
require('acorn/dist/acorn_loose')
Sorry, something went wrong.
That works fine @RReverser. Thanks! I'll submit a PR that adds this to the readme.
Docs: How to require the loose parser
739e013
Fixes acornjs#286
No branches or pull requests
The docs state the link between
require('acorn')
anddist/acorn.js
, but I see no mention of accessingdist/loose_parser
via a require interface.Previously, back in the 0.x days, I could access the loose parser via
require('acorn/acorn_loose');
. Unsure and confused about how to do it now.The text was updated successfully, but these errors were encountered: