liady / webpack-node-externals

Easily exclude node modules in Webpack
MIT License
1.3k stars 62 forks source link

Inverse behavior? #97

Closed theogravity closed 3 years ago

theogravity commented 3 years ago

Anyone know of a plugin that does the inverse (exclude a specific list of modules, let all other modules get included) of this? I have a specific use-case that requires the inverse of what this plugin does. Specifying the list directly does not work in my use-case.

I guess one way would be to load in package.json deps into the allow list, and exclude the ones I'm interested in