Skip to content

Commit

Permalink
fix(projects): fix inject name in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Feb 1, 2024
1 parent 2788757 commit e9399b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue/src/unplugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default createUnplugin<Partial<ElegantVueRouterOption> | undefined>((opti
transformInclude(id) {
const { cwd, pageDir } = ctx.elegantRouter.options;

const isInPageDir = id.startsWith(path.join(cwd, pageDir));
const isInPageDir = id.startsWith(path.posix.join(cwd, pageDir));

if (!isInPageDir) return null;

Expand Down

0 comments on commit e9399b2

Please sign in to comment.