misskey/packages/frontend
anatawa12 21a4f95bd6
fix: the script contains locale json is prefetched (#17585)
This commit upgrades rolldown used by vite to 1.1.0 and set
includeDependenciesRecursively instead of maxSize for
i18n code splitting group.

We unexpectedly prefetched the script file includes locale JSON
before this fix because locale inliner did not remove prefetch
for transitive dependency of i18n global variable.

Current locale inliner assumes the file contains i18n global
variable and the file contains i18n global variable are same file
and only removes prefetch for the file for i18n global variable
and leaves dependency files of the file.
However, in the previous fix for rolldown migration regression,
we set `maxSize: 1` for manual chunk of i18n.
This makes the chunk for i18n global variable (@/i18n.js) and
the chunk includes locale JSON (@@/js/locale.js) distinct chunks.
As a result, only prefetch for i18n global is removed and local
JSON remain in the prefetch file name dictionary (__vite__mapDeps).

There is two ways to fix this problem: 1) make rolldown to bundle
i18n related files into one but leave unrelated files separated
module or 2) update locale inliner to remove transitive dependency
of i18n of __vite__mapDeps.
2nd way is prune to rolldown changes, and it's possible by parsing
each .js file to (re)create module graph in inliner, it's complex.
Therefore, this commit fixes this with 1st way with
includeDependenciesRecursively option on `codeSplitting.groups`
newly added in rolldown 1.1.0.
Since latest vite as of writing (8.0.16) strictly depends on
rolldown 1.0.3, we cannot use it normally. We use overrides
to work around this problem. As far as I checked the vite
repository, upgrading rolldown to 1.1.x includes no code changes
except for package.json, so I hope this upgrade is safe.
2026-06-20 08:59:01 +09:00
..
.storybook enhance: 絵文字データの参照を自前ライブラリに変更 (#17381) 2026-05-09 18:35:38 +09:00
.vscode refactor 2025-08-26 14:38:42 +09:00
@types Feat: ドライブ周りのUIの強化 (#16011) 2025-05-21 07:31:24 +09:00
assets enhance(frontend): 絵文字パレット設定に説明文を追加 (#16750) 2025-11-05 11:35:48 +09:00
lib enhance: estree-walkerをoxc-walkerに変更 (#17556) 2026-06-09 12:10:15 +09:00
public fix(frontend): ロード時の言語判定結果が保存されない問題を修正 (#16956) 2025-12-08 10:17:13 +09:00
src fix(frontend): ノートの下書きをリセットする際、未アップロードのファイルについては添付予定が解除されない問題を修正 (#17568) 2026-06-17 14:26:45 +09:00
test enhance(frontend): テーマの適用管理を改善 (#17376) 2026-05-07 11:42:45 +09:00
.gitignore per-locale bundle & inline locale (#16369) 2025-08-08 11:26:18 +09:00
build.ts refactor: localesをworkspace管理下のパッケージに (#16895) 2025-11-30 13:27:44 +09:00
eslint.config.js refactor(frontend): fix invalid self-closing tags (#17103) 2026-01-16 22:42:08 +09:00
package.json deps: update dependencies (#17575) 2026-06-17 12:13:50 +09:00
tsconfig.json refactor: make noImplicitAny true (#17083) 2026-01-09 22:06:40 +09:00
vite.config.ts fix: the script contains locale json is prefetched (#17585) 2026-06-20 08:59:01 +09:00
vue-shims.d.ts Fix/vue import error on intellij (#12612) 2023-12-09 13:13:31 +09:00