Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

fix(web): preserve bundled editor initialization order

tianma-if855298bb6347
diff --git a/apps/web/vite.config.ts b/apps/web/vite.config.ts
index 80114b54..56722b86 100644
--- a/apps/web/vite.config.ts
+++ b/apps/web/vite.config.ts
@@ -307,6 +307,8 @@ export default defineConfig({
: {}),
},
output: {
+ // Preserve initialization order when manual vendor groups form cycles.
+ strictExecutionOrder: true,
codeSplitting: {
groups: [
{
diff --git a/scripts/verify-web-performance.mjs b/scripts/verify-web-performance.mjs
index 8ba15b4f..6a917089 100644
--- a/scripts/verify-web-performance.mjs
+++ b/scripts/verify-web-performance.mjs
@@ -52,8 +52,8 @@ const allowedLargeChunkPattern = /^(?:vendor-(?:code-highlight|beautiful-mermaid
// while retaining the initial preload budget and the checks below.
const boundedDeferredChunks = [
{ pattern: /^vendor~mathlive-loader-.*\.js$/, maxBytes: 850 * 1024 },
- // Poster editing adds localized controls; the current catalog is ~527 KiB.
- { pattern: /^i18n-ja-.*\.js$/, maxBytes: 530 * 1024 },
+ // Poster editing adds localized controls; the current catalog is ~530 KiB.
+ { pattern: /^i18n-ja-.*\.js$/, maxBytes: 535 * 1024 },
];
const allowedLargeChunk = ({ name, size }) =>
allowedLargeChunkPattern.test(name) ||