Skip to content

Commit 9697007

Browse files
committed
Prevent vite from emptying the outDir
1 parent c7b3959 commit 9697007

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/tests/src/_jest/helpers/configBundlers.ts

+1
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ export const getViteOptions = (
169169
return {
170170
root: workingDir,
171171
build: {
172+
emptyOutDir: false,
172173
assetsDir: '', // Disable assets dir to simplify the test.
173174
minify: false,
174175
rollupOptions: {

packages/tools/src/bundlers.ts

+1
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ export const configVite = (config: BundlerConfig): InlineConfig => {
281281
return {
282282
root: config.workingDir,
283283
build: {
284+
emptyOutDir: false,
284285
assetsDir: '', // Disable assets dir to simplify the test.
285286
minify: false,
286287
rollupOptions: baseConfig,

0 commit comments

Comments
 (0)