Skip to content

Commit ddc9e32

Browse files
committedFeb 6, 2024
fix(electron): user app bundle file extension
1 parent f427e14 commit ddc9e32

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed
 

‎packages/electron/scripts/build.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ async function buildBundle() {
6161
build({
6262
entry: [resolve('./src/index.ts'), resolve('./src/app.ts')],
6363
...baseOptions,
64-
external: ['./user-app.mjs', './user-app.js', ...ExternalModules],
64+
external: ['./user-app.js', ...ExternalModules],
6565
clean: false,
6666
})
6767

‎packages/electron/src/index.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@ export async function connect(host: string, port: number) {
55
devtools.init()
66
target.__VUE_DEVTOOLS_HOST__ = host
77
target.__VUE_DEVTOOLS_PORT__ = port
8-
// @ts-expect-error skip
9-
import('./user-app.mjs')
8+
import('./user-app.js')
109
}

0 commit comments

Comments
 (0)
Please sign in to comment.