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
Copy file name to clipboardexpand all lines: README.md
+1-21
Original file line number
Diff line number
Diff line change
@@ -87,27 +87,7 @@ shown in the example above.
87
87
88
88
## Usage In Browsers
89
89
90
-
You will need a bundler like [`browserify`](https://github.com/browserify/browserify#readme), [`webpack`](https://webpack.js.org/), [`parcel`](https://github.com/parcel-bundler/parcel#readme) or similar. With Webpack 5 (which unlike other bundlers does not polyfill Node.js core modules and globals like `process`) you will also need to:
91
-
92
-
1. Install polyfills by running `npm install buffer process --save-dev`
93
-
2. Create a [`webpack.config.js`](https://webpack.js.org/guides/getting-started/#using-a-configuration) file containing:
94
-
95
-
```js
96
-
constwebpack=require('webpack')
97
-
98
-
module.exports= {
99
-
plugins: [
100
-
newwebpack.ProvidePlugin({
101
-
process:'process/browser'
102
-
})
103
-
],
104
-
resolve: {
105
-
fallback: {
106
-
buffer:require.resolve('buffer/')
107
-
}
108
-
}
109
-
}
110
-
```
90
+
You will need a bundler like [`browserify`](https://github.com/browserify/browserify#readme), [`webpack`](https://webpack.js.org/), [`parcel`](https://github.com/parcel-bundler/parcel#readme) or similar. Polyfills are no longer required since version 4.2.0.
0 commit comments