mirror of
https://github.com/MisskeyIO/misskey
synced 2024-11-27 14:28:49 +09: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
530912b38b
commit
9381a84e97
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user