From 9381a84e97067fae3374617608131a131481ee7c Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Sun, 2 Apr 2017 02:45:59 +0900 Subject: [PATCH] Fix #388 Be aware that Object.assign(target, source) has a side effect. It copies properties from a source object to a target object. Use Object.assign({}, source1, source2) instead to avoid side effects. --- webpack.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.config.ts b/webpack.config.ts index aeea18a88..e550a0022 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -21,7 +21,7 @@ const env = process.env.NODE_ENV; const isProduction = env === 'production'; module.exports = (Object as any).entries(languages).map(([lang, locale]) => { - locale = Object.assign(native, locale); + locale = Object.assign({}, native, locale); const pack /*: webpack.Configuration ← fuck wrong type definition!!! */ = { name: lang,