Skip to content

Commit 03a7703

Browse files
authored
chore: fix browser build plugin (#6793)
1 parent 2a0e5aa commit 03a7703

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/browser/src/client/vite.config.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,14 @@ export default defineConfig({
4242
)
4343

4444
const ui = resolve(root, 'ui/dist/client')
45+
const uiEntryPoint = resolve(ui, 'index.html')
4546
const browser = resolve(root, 'browser/dist/client/__vitest__/')
4647

4748
const timeout = setTimeout(
4849
() => console.log('[copy-ui-plugin] Waiting for UI to be built...'),
4950
1000,
5051
)
51-
await waitFor(() => fs.existsSync(ui))
52+
await waitFor(() => fs.existsSync(ui) && fs.existsSync(uiEntryPoint))
5253
clearTimeout(timeout)
5354

5455
const files = globSync(['**/*'], { cwd: ui, expandDirectories: false })

0 commit comments

Comments
 (0)