Skip to content

Commit

Permalink
fix(browser): fix strip base for client script
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Sep 15, 2024
1 parent 699055e commit 155b690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/browser/src/node/serverTester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export async function resolveTester(
const testerScripts = await server.formatScripts(
project.config.browser.testerScripts,
)
const clientScript = `<script type="module" src="${server.project.config.base || '/'}@vite/client"></script>`
const clientScript = `<script type="module" src="/@vite/client"></script>`
const stateJs = typeof server.stateJs === 'string'
? server.stateJs
: await server.stateJs
Expand Down

0 comments on commit 155b690

Please sign in to comment.