We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a0e5aa commit 03a7703Copy full SHA for 03a7703
packages/browser/src/client/vite.config.ts
@@ -42,13 +42,14 @@ export default defineConfig({
42
)
43
44
const ui = resolve(root, 'ui/dist/client')
45
+ const uiEntryPoint = resolve(ui, 'index.html')
46
const browser = resolve(root, 'browser/dist/client/__vitest__/')
47
48
const timeout = setTimeout(
49
() => console.log('[copy-ui-plugin] Waiting for UI to be built...'),
50
1000,
51
- await waitFor(() => fs.existsSync(ui))
52
+ await waitFor(() => fs.existsSync(ui) && fs.existsSync(uiEntryPoint))
53
clearTimeout(timeout)
54
55
const files = globSync(['**/*'], { cwd: ui, expandDirectories: false })
0 commit comments