Skip to content

Commit

Permalink
fix(browser): fix base for client script (#6510)
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa authored Sep 25, 2024
1 parent e9821f7 commit f952874
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="${server.base}@vite/client"></script>`
const stateJs = typeof server.stateJs === 'string'
? server.stateJs
: await server.stateJs
Expand Down

0 comments on commit f952874

Please sign in to comment.