Skip to content

Commit fe8e9b6

Browse files
author
Eric Prud'hommeaux
authored
Add README pointer to node-polyfill-webpack-plugin
Needed for Webpack 5
1 parent 7e50441 commit fe8e9b6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ $ yarn add rdfa-streaming-parser
2222
```
2323

2424
This package also works out-of-the-box in browsers via tools such as [webpack](https://webpack.js.org/) and [browserify](http://browserify.org/).
25+
Webpack 5 no longer ships with Node.js core libraries, including `stream`.
26+
The [node-polyfill-webpack-plugin](https://www.npmjs.com/package/node-polyfill-webpack-plugin) module can provide this, with this addition to the webpack config:
27+
28+
``` javascript
29+
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin");
30+
31+
module.exports = {
32+
33+
plugins: [ … new NodePolyfillPlugin() ]
34+
}
35+
```
2536

2637
## Require
2738

0 commit comments

Comments
 (0)