We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Better support for fengari bundling for the browser.
When bundling for the browser, I expect node modules such as fs not to be bundled.
fs
Such modules are bundled and waste time and size.
fengari uses the following condition:
if (typeof process === 'undefined') { // browser } else { // node }
This doesn't support webpack or parcel properly, however in webpack it can be solved by defining the following:
new webpack.DefinePlugin({ 'typeof process': JSON.stringify('undefined'), })
Would love a solution for parcel.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
🙋 feature request
Better support for fengari bundling for the browser.
🤔 Expected Behavior
When bundling for the browser, I expect node modules such as
fs
not to be bundled.😯 Current Behavior
Such modules are bundled and waste time and size.
💁 Possible Solution
fengari uses the following condition:
This doesn't support webpack or parcel properly, however in webpack it can be solved by defining the following:
Would love a solution for parcel.
The text was updated successfully, but these errors were encountered: