Merge pull request #3699 from directus/revert-3697-old-node-build-fix

Revert "Fix building on Node v10"
This commit is contained in:
Rijk van Zanten
2021-01-14 17:48:28 -07:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ function createConfig({
target,
mode,
browser = false,
external = Object.assign(...Object.keys(pkg.dependencies || {}).map((k) => ({ [k]: k }))),
external = Object.fromEntries(Object.keys(pkg.dependencies || {}).map((x) => [x, x])),
}) {
const isProduction = mode === 'production';

View File

@@ -45,7 +45,7 @@ function createConfig({
target,
mode,
browser = false,
external = Object.assign(...Object.keys(pkg.dependencies || {}).map((k) => ({ [k]: k }))),
external = Object.fromEntries(Object.keys(pkg.dependencies || {}).map((x) => [x, x])),
}) {
const isProduction = mode === 'production';