• T
    Add browser polyfils for Node.js modules (webpack 5 backwards compat) (#16022) · 843d5842
    Tim Neutkens 提交于
    This adds the following Node.js core polyfills only when the import is used:
    
    - `path`
    - `stream`
    - `vm`
    - `crypto`
    - `buffer`
    
    Fixes #15948
    
    We'll have a separate issue about adding warnings for the usage of these modules in the browser, some polyfills like crypto are quite heavy and generally not needed for most applications (included accidentally through node_modules).
    843d5842
webpack-config.ts 44.8 KB