mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-13 17:14:02 +03:00
chore: fix racy emptyOutDir in trace-viewer build (#20090)
This commit is contained in:
parent
e065d608b6
commit
3a1eb2abda
@ -35,7 +35,8 @@ export default defineConfig({
|
||||
},
|
||||
build: {
|
||||
outDir: path.resolve(__dirname, '../playwright-core/lib/webpack/traceViewer'),
|
||||
emptyOutDir: true,
|
||||
// Output dir is shared with vite.sw.config.ts, clearing it here is racy.
|
||||
emptyOutDir: false,
|
||||
rollupOptions: {
|
||||
output: {
|
||||
entryFileNames: () => '[name].[hash].js',
|
||||
|
@ -35,6 +35,8 @@ export default defineConfig({
|
||||
},
|
||||
build: {
|
||||
outDir: path.resolve(__dirname, '../playwright-core/lib/webpack/traceViewer'),
|
||||
// Output dir is shared with vite.config.ts, clearing it here is racy.
|
||||
emptyOutDir: false,
|
||||
rollupOptions: {
|
||||
input: {
|
||||
sw: path.resolve(__dirname, 'src/sw.ts'),
|
||||
|
Loading…
Reference in New Issue
Block a user