diff options
| author | Tusooa Zhu <tusooa@kazv.moe> | 2022-09-20 23:13:07 -0400 |
|---|---|---|
| committer | Tusooa Zhu <tusooa@kazv.moe> | 2022-09-20 23:13:07 -0400 |
| commit | a758e18dceb4cb11d84d6dff1cdfddb755af60db (patch) | |
| tree | 4eda0875a7102d4111ec16d64db4c90bf3ab3091 /src | |
| parent | 6fab7b9e3ffb4a9bce2788174ef0e9e6eef7b2c5 (diff) | |
Make chunks named
Diffstat (limited to 'src')
| -rw-r--r-- | src/i18n/messages.js | 1 | ||||
| -rw-r--r-- | src/modules/instance.js | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/i18n/messages.js b/src/i18n/messages.js index 8cf25973..74a89ca8 100644 --- a/src/i18n/messages.js +++ b/src/i18n/messages.js @@ -14,6 +14,7 @@ const hasLanguageFile = (code) => languages.includes(code) const loadLanguageFile = (code) => { return import( /* webpackInclude: /\.json$/ */ + /* webpackChunkName: "i18n/[request]" */ `./${langCodeToJsonName(code)}.json` ) } diff --git a/src/modules/instance.js b/src/modules/instance.js index 9f326d26..b1bc9779 100644 --- a/src/modules/instance.js +++ b/src/modules/instance.js @@ -133,6 +133,7 @@ const defaultState = { const loadAnnotations = (lang) => { return import( + /* webpackChunkName: "emoji-annotations/[request]" */ `@kazvmoe-infra/unicode-emoji-json/annotations/${langCodeToCldrName(lang)}.json` ) .then(k => k.default) @@ -234,7 +235,7 @@ const instance = { }, async getStaticEmoji ({ commit }) { try { - const values = (await import('../../static/emoji.json')).default + const values = (await import(/* webpackChunkName: 'emoji' */ '../../static/emoji.json')).default const emoji = Object.keys(values).reduce((res, groupId) => { res[groupId] = values[groupId].map(e => ({ |
