Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Publish esprima js files #1973
Publish esprima js files #1973
Conversation
|
Bret Ikehara seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. |
By publishing the ES5 in
liband ES2015 andlib.es2015to npm, the esprima library can be directly referenced leading to more control over what ends up in a output bundle. While the webpack bundle works well, it is essentially a "binary" that can't be "tree-shaken" to remove support for functionality that isn't needed. In my case, JSX support is not needed, so I want to remove JSX from the output. Having individual files allows me to import only those files necessary to parse scripts.