Revert "Fix building on Node v10"

This commit is contained in:
Rijk van Zanten
2021-01-14 19:48:04 -05:00
committed by GitHub
parent 820c97f827
commit 442f7b5046
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';