estools/estraverse

Remove `require('./package.json')` from estraverse.js

natefaubion opened this issue ยท 5 comments

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.

๐Ÿ‘ very annoying

๐Ÿ‘

@natefaubion which shim?

+1

๐Ÿ‘
webpack failed because of this issue.

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.