Skip to content
Discussion options

You must be logged in to vote

Comment out or remove the shiki object and make externalPackages an empty array.

This might fail some CI as shiki language/theme definitions are too big, but there should be no problem other than that

/**
* Misskeyのフロントエンドにバンドルせず、CDNなどから別途読み込むリソースを記述する。
* CDNを使わずにバンドルしたい場合、以下の配列から該当要素を削除orコメントアウトすればOK
*/
const externalPackages = [
// shiki(コードブロックのシンタックスハイライトで使用中)はテーマ・言語の定義の容量が大きいため、それらはCDNから読み込む
{
name: 'shiki',
match: /^shiki\/(?<subPkg>(langs|themes))$/,
path(id: string, pattern: RegExp): string {
const match = pattern.exec(id)?.groups;
return match

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@sindastra
Comment options

@kakkokari-gtyih
Comment options

Answer selected by sindastra
@sindastra
Comment options

@kakkokari-gtyih
Comment options

@sindastra
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #16955 on December 08, 2025 00:29.