liady / webpack-node-externals

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

Support options.skiplist (=[]) #115

Open sushantdhiman opened 2 years ago

sushantdhiman commented 2 years ago

Background

When bundling for server-less environment, cost of doing multiple require is too high. This plugin allows me to bundle code as a single file. I would like to bundle all node modules in same file, but skip a few of them, which don't support bundling.

Feature Request

There should be an option to include all node modules while skipping some of them with options.skiplist (=[]).

Currently as a work-around I am using negative look-ahead in allowlist, to skip some node modules while keeping everything else in same file.