Skip to content

Commit 99acb5a

Browse files
author
rocketraccoon
committed
fix: join path for vite
1 parent eab9148 commit 99acb5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runner/browser-env/vite/plugins/generate-index-html.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const plugin = async (): Promise<Plugin[]> => {
3838
const driverModulePath = path.resolve(browserModulesPath, "driver.js");
3939
const mockModulePath = path.resolve(browserModulesPath, "mock.js");
4040

41-
const automationProtocolPath = `/@fs${driverModulePath}`;
41+
const automationProtocolPath = path.join("/@fs", driverModulePath).replace(/\\/g, "/");
4242

4343
const stubDefaultModulePath = path.resolve(browserModulesPath, "stubs/default-module.js");
4444
const stubImportMetaResolvePath = path.resolve(browserModulesPath, "stubs/import-meta-resolve.js");

0 commit comments

Comments
 (0)