Skip to content

Commit

Permalink
fix: virtualModulePrefix compactible for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 25, 2021
1 parent bc4e50b commit 9104fa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webpack/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function getWebpackPlugin<UserOptions = {}> (
rawPlugin,
{
__unpluginMeta: meta,
__virtualModulePrefix: path.join(process.cwd(), 'virtual:')
__virtualModulePrefix: path.join(process.cwd(), '_virtual_')
}
) as ResolvedUnpluginOptions

Expand Down

0 comments on commit 9104fa2

Please sign in to comment.