webpack-node-externals icon indicating copy to clipboard operation
webpack-node-externals copied to clipboard

Do we need to set `externalsPresets` when `target: 'node'`?

Open OliverJAsh opened this issue 3 years ago • 0 comments

Regarding this part of the docs:

https://github.com/liady/webpack-node-externals/blob/fc082618f98c564c92f3467523618dfcf4de2084/README.md#L32-L44

When target: 'node' I suspect the default for externalsPresets will be { node: true }:

https://github.com/webpack/webpack/blob/88978167ea2ee438761179dbbe2e21233dc9d34d/lib/config/defaults.js#L905

Therefore I'm not sure we need to set externalsPresets when target: 'node'?

OliverJAsh avatar Oct 11 '21 10:10 OliverJAsh