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

Feature request: parse multiple files into a single AST #5

Closed
mishoo opened this issue Oct 5, 2012 · 0 comments
Closed

Feature request: parse multiple files into a single AST #5

mishoo opened this issue Oct 5, 2012 · 0 comments

Comments

@mishoo
Copy link
Contributor

mishoo commented Oct 5, 2012

This is useful in UglifyJS to compress multiple files and generate a proper source map.

Basically, the parser would receive a Program node and will append new statements to its body instead of creating a new Program. The tricky part is that besides start/end the "loc" property needs also to contain "source" (specified in the SpiderMonkey parser API).

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

Successfully merging a pull request may close this issue.

1 participant