Skip to content

Commit abb9496

Browse files
committed
fix release build blank screen
1 parent 813d3ba commit abb9496

2 files changed

Lines changed: 11 additions & 19 deletions

File tree

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ jobs:
8585
- PDF import handles text-based PDFs only — no scanned/OCR; complex multi-column layouts may reorder.
8686
- Spreadsheet import is capped at 500 rows/sheet; images can't be mapped to a specific cell.
8787
- Vector images (EMF/WMF) can't be displayed; pptx animations are dropped.
88-
- **Builds are unsigned / un-notarized.** On macOS you must remove the quarantine flag (`xattr -dr com.apple.quarantine "/Applications/Pourdown.app"`); on Windows, SmartScreen may need a one-time "More info → Run anyway". See the README for step-by-step install instructions.
8988
releaseDraft: true
9089
prerelease: true
9190
args: ${{ matrix.args }}

vite.config.ts

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -52,24 +52,17 @@ export default defineConfig(async () => ({
5252
},
5353
rollupOptions: {
5454
output: {
55-
manualChunks: {
56-
// mermaid is already dynamically imported per-block; this gives it a stable chunk name
57-
mermaid: ["mermaid"],
58-
tiptap: [
59-
"@tiptap/core",
60-
"@tiptap/react",
61-
"@tiptap/starter-kit",
62-
"@tiptap/extension-image",
63-
"@tiptap/extension-placeholder",
64-
"@tiptap/extension-table",
65-
"@tiptap/extension-table-cell",
66-
"@tiptap/extension-table-header",
67-
"@tiptap/extension-table-row",
68-
"@tiptap/extension-typography",
69-
],
70-
lowlight: ["lowlight", "@tiptap/extension-code-block-lowlight"],
71-
i18n: ["i18next", "react-i18next"],
72-
},
55+
// No manualChunks: a prior grouping (mermaid/tiptap/lowlight/i18n
56+
// into fixed chunks) produced a `ReferenceError: Cannot access
57+
// uninitialized variable` at module-eval time in built bundles
58+
// (both debug and release `tauri build`, never in `tauri dev` since
59+
// the dev server doesn't bundle) — a classic manualChunks
60+
// circular/init-order TDZ bug, most likely from splitting
61+
// `react-i18next` away from the `react` chunk it depends on at
62+
// eval time. Letting rollup auto-split by the import graph
63+
// guarantees correct init order at the cost of slightly less
64+
// predictable chunk names, which doesn't matter for a desktop app
65+
// serving local assets.
7366
},
7467
},
7568
},

0 commit comments

Comments
 (0)