You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 27, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 27, 2026. It is now read-only.
Webpack adds the nodejs shims when they actually not necessary. #194
Webpack includes in the resulting bundle nodejs shims for buffer, process and path modules when they are actually not necessary. It adds about 30kb in the minified bundle.
I faced this issue after updating version of webpack from 1.x to 2.x.
If the current behavior is a bug, please provide the steps to reproduce.
Activity
michael-ciniawsky commentedon Mar 16, 2017
@sullenor We need to investigate but not sure if we can fix it easily, as a workaround could you try
webpack.config.js
I know it's inconvenient and shouldn't be a requirement to use
style-loaderor any other loader, but for the meantime 😛mightyaleksey commentedon Mar 17, 2017
@michael-ciniawsky looks like I came to the similar workaround :)
thank you!
ablankenship10 commentedon May 1, 2017
Think I am having a similar but slightly different issue. Without style-loader the webpack output:
Importing 1 empty stylesheet into my project causes this:
My webpack config with the work around mentioned above:
EDIT: It looks like the problem is actually with css-loader, not style-loader, and the work around should be Buffer with a capital B not lowercase.
Issue Ref from webpack/css-loader#454
michael-ciniawsky commentedon May 22, 2017
Fixed in
v0.18.0https://github.com/webpack-contrib/style-loader/blob/master/lib/addStyles.js#L343