Skip to content

Commit

Permalink
chore: fix browser build plugin (#6793)
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin authored Oct 26, 2024
1 parent 2a0e5aa commit 03a7703
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/browser/src/client/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,14 @@ export default defineConfig({
)

const ui = resolve(root, 'ui/dist/client')
const uiEntryPoint = resolve(ui, 'index.html')
const browser = resolve(root, 'browser/dist/client/__vitest__/')

const timeout = setTimeout(
() => console.log('[copy-ui-plugin] Waiting for UI to be built...'),
1000,
)
await waitFor(() => fs.existsSync(ui))
await waitFor(() => fs.existsSync(ui) && fs.existsSync(uiEntryPoint))
clearTimeout(timeout)

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

0 comments on commit 03a7703

Please sign in to comment.