Skip to content

Commit

Permalink
fix(electron): user app bundle file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
webfansplz committed Feb 6, 2024
1 parent f427e14 commit ddc9e32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/electron/scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ async function buildBundle() {
build({
entry: [resolve('./src/index.ts'), resolve('./src/app.ts')],
...baseOptions,
external: ['./user-app.mjs', './user-app.js', ...ExternalModules],
external: ['./user-app.js', ...ExternalModules],
clean: false,
})

Expand Down
3 changes: 1 addition & 2 deletions packages/electron/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ export async function connect(host: string, port: number) {
devtools.init()
target.__VUE_DEVTOOLS_HOST__ = host
target.__VUE_DEVTOOLS_PORT__ = port
// @ts-expect-error skip
import('./user-app.mjs')
import('./user-app.js')
}

0 comments on commit ddc9e32

Please sign in to comment.