Node.js

Polyfills

Rspack does not automatically inject polyfills for Node. If you need to use the corresponding functionality, add the node-polyfill-webpack-plugin plugin and corresponding configuration in rspack.config.js:

rspack.config.js
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');

module.exports = {
  plugins: [new NodePolyfillPlugin()],
};
ON THIS PAGE