Skip to content

Commit

Permalink
fix: windows handling
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re committed Dec 20, 2023
1 parent fc7d6b6 commit b76e786
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/integrations/vue/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ function virtualAppEntrypoint(options?: Options): Plugin {
root = config.root;
if (options?.appEntrypoint) {
appEntrypoint = options.appEntrypoint.startsWith('.')
? path.resolve(root, options.appEntrypoint)
? path.resolve(root, options.appEntrypoint).replace(root, '')
: options.appEntrypoint;
appEntrypoint = appEntrypoint?.replaceAll('\\', '/')
}
},
resolveId(id: string) {
Expand Down

0 comments on commit b76e786

Please sign in to comment.