Skip to content

Commit

Permalink
fix(server.base.js): rename webpack-node-externals options
Browse files Browse the repository at this point in the history
option `whilelist` is deprecated, use `allowlist` instead
  • Loading branch information
aneurysmjs committed Aug 24, 2020
1 parent dd4e658 commit 477088c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions config/webpack-config/server/server.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,15 @@ module.exports = {
},
externals: [
nodeExternals({
// we still want imported css from external files to be bundled otherwise 3rd party packages
// which require us to include their own css would not work properly
whitelist: /\.css$/,
/**
* we still want imported css from external files to be bundled otherwise 3rd party packages
* which require us to include their own css would not work properly
*
* `whitelist` is now `allowlist`
* @see https://github.com/nestjs/nest/issues/5068
* it fixes: Error: [webpack-node-externals] : Option 'whitelist' is not supported. Did you mean 'allowlist'?
*/
allowlist: /\.css$/,
}),
],
output: {
Expand Down

0 comments on commit 477088c

Please sign in to comment.