-
-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Description
Regarding this part of the docs:
webpack-node-externals/README.md
Lines 32 to 44 in fc08261
| **Note**: For Webpack 5, in addition to `target: 'node'` also include the `externalsPreset` object: | |
| ```js | |
| // Webpack 5 | |
| const nodeExternals = require('webpack-node-externals'); | |
| ... | |
| module.exports = { | |
| ... | |
| target: 'node', | |
| externalsPresets: { node: true }, // in order to ignore built-in modules like path, fs, etc. | |
| externals: [nodeExternals()], // in order to ignore all modules in node_modules folder | |
| ... | |
| }; |
When target: 'node' I suspect the default for externalsPresets will be { node: true }:
Therefore I'm not sure we need to set externalsPresets when target: 'node'?
denchiklut, thetumper, LEI and julianpung
Metadata
Metadata
Assignees
Labels
No labels