Skip to content

Commit 748022d

Browse files
authored
Trim the VS Code extension package and update vsce to 4.0.0 (#1262)
2 parents d52fdaa + dbe1940 commit 748022d

6 files changed

Lines changed: 54 additions & 782 deletions

File tree

‎dor-tools-builtin/scripts/build-viewer.mjs‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ export async function buildViewerAssets(outdir) {
2121
target: 'es2022', minify: true, loader: { '.ttf': 'file' }, assetNames: '[name]',
2222
}),
2323
// Mermaid and CodeMirror's languages load as split chunks on first use.
24+
// Keep them split: inlined, every Markdown open would parse ~5 MB of
25+
// diagram and language code it rarely needs (228 chunks, 2026-10). Each
26+
// viewer is likewise its own build, so a page loads only its own code.
27+
// vsce's "bundle your extension" warning counts these chunks; ignore it.
2428
build({
2529
absWorkingDir,
2630
entryPoints: { markdown: 'viewer/markdown.tsx' },

0 commit comments

Comments
 (0)