Skip to content

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

@pottabathini

Description

@pottabathini

❓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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions