mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 03:47:40 -07:00
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.
This commit is contained in:
parent
46665b2b37
commit
8a64d97d16
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ const env = process.env.NODE_ENV;
|
||||||
const isProduction = env === 'production';
|
const isProduction = env === 'production';
|
||||||
|
|
||||||
module.exports = (Object as any).entries(languages).map(([lang, locale]) => {
|
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!!! */ = {
|
const pack /*: webpack.Configuration ← fuck wrong type definition!!! */ = {
|
||||||
name: lang,
|
name: lang,
|
||||||
|
|
Loading…
Reference in a new issue