Remove `require('./package.json')` from estraverse.js
natefaubion opened this issue ยท 5 comments
natefaubion commented
When requiring estraverse for the browser via browserify/webpack, it includes the package.json in the build output. This can be fixed by a shim of some sort, but its mildly annoying.
robbestad commented
๐ very annoying
reverofevil commented
๐
hoschi commented
@natefaubion which shim?
+1
wilfrem commented
๐
webpack failed because of this issue.
michaelficarra commented
Closing, as this isn't an estraverse issue. A sufficiently advanced optimising compiler will load the JSON and strip any fields that are not accessed. If webpack is failing, open an issue on webpack.