Skip to content
New issue

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

Why razzle forcing buffer and process package in ProvidePlugin if webpack version is 5 #1920

Open
pottabathini opened this issue Aug 28, 2023 · 0 comments

Comments

@pottabathini
Copy link

❓Question

In createConfigAysnc file, while creating config for webpack, in plugins razzle adding buffer as providePlugin. Want to know why razzle is adding buffer when webpack is 5.

We are seeing issues because of buffer in IE11. Buffer is a node core module and it's not transpiling for IE11. Webpack/babel not converting buffer package and copy pasting source code in output bundle. Buffer is using BigInt and it's not supported in IE11.

I am looking for following options.

  1. Any option we can tell babel to polyfill Buffer to IE11
  2. Is it okay to remove webpack ProvidePlugin not to include buffer? planning to remove this plugin using modifywebconfig option.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant