From 847bd8e444d22ceb73d2df0fa44d9f07b5d4e600 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 7 Sep 2020 13:25:01 +0300 Subject: [PATCH] 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 Co-authored-by: erezrokah --- packages/netlify-cms-proxy-server/package.json | 2 +- packages/netlify-cms-proxy-server/webpack.config.js | 6 +++--- yarn.lock | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/netlify-cms-proxy-server/package.json b/packages/netlify-cms-proxy-server/package.json index 1d432185..7bed0839 100644 --- a/packages/netlify-cms-proxy-server/package.json +++ b/packages/netlify-cms-proxy-server/package.json @@ -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" diff --git a/packages/netlify-cms-proxy-server/webpack.config.js b/packages/netlify-cms-proxy-server/webpack.config.js index c7a7696e..28914a49 100644 --- a/packages/netlify-cms-proxy-server/webpack.config.js +++ b/packages/netlify-cms-proxy-server/webpack.config.js @@ -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')), }), ], diff --git a/yarn.lock b/yarn.lock index 7110abb8..21191cc7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"