Skip to content
New issue

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

Docs on accessing the loose_parser in a node environment #286

Closed
mrjoelkemp opened this issue Jun 29, 2015 · 2 comments
Closed

Docs on accessing the loose_parser in a node environment #286

mrjoelkemp opened this issue Jun 29, 2015 · 2 comments

Comments

@mrjoelkemp
Copy link
Contributor

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.

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.

@RReverser
Copy link
Member

require('acorn/dist/acorn_loose') should do the trick. Let me know if that doesn't work.

@mrjoelkemp
Copy link
Contributor Author

That works fine @RReverser. Thanks! I'll submit a PR that adds this to the readme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants