Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions rsbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,15 @@ const config = getRsbuildConfig({
// font sets are byte-identical, so we copy only the prod one (both build modes
// resolve the same `fonts/...` filenames at runtime). `info.minimized` stops
// rspack from re-minifying the prebuilt assets.
//
// Xiaolai is excluded: it is Excalidraw's CJK fallback font, ~12 MB of woff2
// subsets (every other font set is <1 MB total), and we do not ship CJK glyph
// rendering for drawings. Drop it to keep the build under the registry limit.
const excalidrawAssets = [
{
from: 'node_modules/@excalidraw/excalidraw/dist/prod/fonts',
to: 'fonts',
globOptions: { ignore: ['**/Xiaolai/**'] },
info: { minimized: true }
}
]
Expand Down
Loading