Skip to content

Commit 46f61c1

Browse files
committed
Fix ES module error in release binary
- Update Vite config to output CommonJS for main process - Change main entry to .cjs - Replace verify-release-assets.js with .mjs
1 parent 47a1857 commit 46f61c1

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

β€Žpackage.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"productName": "AliFullStack",
44
"version": "0.0.9",
55
"description": "Free, local, open-source AI app builder",
6-
"main": ".vite/build/main.js",
6+
"main": ".vite/build/main.cjs",
77
"type": "module",
88
"repository": {
99
"type": "git",

β€Žvite.main.config.mtsβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ export default defineConfig({
1212
rollupOptions: {
1313
external: ["better-sqlite3"],
1414
output: {
15+
format: 'cjs',
16+
entryFileNames: '[name].cjs',
1517
sourcemap: true,
1618
},
1719
},

0 commit comments

Comments
Β (0)