Restrict Node Stuff for Webpack
A small utility to generate a very restrictive node
config for webpack. Use this when you want full control of which polyfills you have in your output bundle.
Installation
npm install --save webpack-restrict-node-stuff
Usage
const restrictNodeStuff = // ... moduleexports = // ... node:
API
restrictNodeStuff([whitelist])
Returns a config object for the webpack node
property that disables everything except the items listed in whitelist
.