Files
md/apps/web/tsconfig.node.json
Libin YANG adf6c62aa7 perf(web): cut initial JS bundle by ~620 kB (#1886)
- Scope the manualChunks highlight.js rule to the package root so
  @antv/infographic's select-highlight.js no longer drags roughjs,
  measury fonts, culori and tinycolor2 onto the critical path
  (highlight chunk: 281 kB -> 57 kB min)
- Only pin core @lezer packages (common/lr/highlight/markdown/html)
  in the codemirror chunk; language grammars follow the lazy
  LanguageDescription.load() chunks again (1,019 kB -> 624 kB min)
- Drop css/javascript language setups from the shared editor barrel;
  lazy consumers import them via '@md/shared/editor/css' and
  '@md/shared/editor/javascript' instead
- Replace jszip with fflate (already bundled via @md/core) for the
  CSS-theme and posts ZIP exports; remove the jszip dependency
- Fix Vite native-config-loader warnings: replace __dirname with
  fileURLToPath(import.meta.url) and add the .ts extension to the
  local plugin import
2026-08-02 08:15:19 +08:00

8 lines
168 B
JSON

{
"extends": "@md/config/tsconfig.node.json",
"compilerOptions": {
"allowImportingTsExtensions": true
},
"include": ["vite.config.ts", "plugins/**/*.ts"]
}