chore(deps): update dependency webpack-node-externals to v2 (#4271)

* chore(deps): update dependency webpack-node-externals to v2

* fix: use allowlist

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: erezrokah <erezrokah@users.noreply.github.com>
This commit is contained in:
renovate[bot] 2020-09-07 13:25:01 +03:00 committed by GitHub
parent c6ac07dbf6
commit 847bd8e444
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 8 deletions

View File

@ -47,7 +47,7 @@
"ts-node": "^9.0.0",
"tsconfig-paths-webpack-plugin": "^3.2.0",
"webpack": "^4.41.5",
"webpack-node-externals": "^1.7.2"
"webpack-node-externals": "^2.0.0"
},
"engines": {
"node": ">=v10.22.0"

View File

@ -4,7 +4,7 @@ const nodeExternals = require('webpack-node-externals');
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
const { NODE_ENV = 'production' } = process.env;
const allowList = [/^netlify-cms-lib-util/];
const allowlist = [/^netlify-cms-lib-util/];
module.exports = {
entry: { index: path.join('src', 'index.ts'), middlewares: path.join('src', 'middlewares.ts') },
@ -29,9 +29,9 @@ module.exports = {
],
},
externals: [
nodeExternals({ whitelist: allowList }),
nodeExternals({ allowlist }),
nodeExternals({
whitelist: allowList,
allowlist,
modulesDir: path.resolve(__dirname, path.join('..', '..', 'node_modules')),
}),
],

View File

@ -18488,10 +18488,10 @@ webpack-log@^2.0.0:
ansi-colors "^3.0.0"
uuid "^3.3.2"
webpack-node-externals@^1.7.2:
version "1.7.2"
resolved "https://registry.yarnpkg.com/webpack-node-externals/-/webpack-node-externals-1.7.2.tgz#6e1ee79ac67c070402ba700ef033a9b8d52ac4e3"
integrity sha512-ajerHZ+BJKeCLviLUUmnyd5B4RavLF76uv3cs6KNuO8W+HuQaEs0y0L7o40NQxdPy5w0pcv8Ew7yPUAQG0UdCg==
webpack-node-externals@^2.0.0:
version "2.5.2"
resolved "https://registry.yarnpkg.com/webpack-node-externals/-/webpack-node-externals-2.5.2.tgz#178e017a24fec6015bc9e672c77958a6afac861d"
integrity sha512-aHdl/y2N7PW2Sx7K+r3AxpJO+aDMcYzMQd60Qxefq3+EwhewSbTBqNumOsCE1JsCUNoyfGj5465N0sSf6hc/5w==
webpack-sources@^1.1.0, webpack-sources@^1.4.0, webpack-sources@^1.4.1, webpack-sources@^1.4.3:
version "1.4.3"