mirror of
https://github.com/vitejs/vite.git
synced 2024-11-21 22:59:10 +00:00
test: don't share cacheDir among different configs (#12625)
This commit is contained in:
parent
e10c6bdc75
commit
8288ce6a50
@ -21,4 +21,5 @@ export default defineConfig({
|
||||
testConfig: {
|
||||
baseRoute: '/relative-base/',
|
||||
},
|
||||
cacheDir: 'node_modules/.vite-relative-base',
|
||||
})
|
||||
|
@ -57,4 +57,5 @@ export default defineConfig({
|
||||
}
|
||||
},
|
||||
},
|
||||
cacheDir: 'node_modules/.vite-runtime-base',
|
||||
})
|
||||
|
@ -21,4 +21,5 @@ export default defineConfig({
|
||||
testConfig: {
|
||||
baseRoute: '/url-base/',
|
||||
},
|
||||
cacheDir: 'node_modules/.vite-url-base',
|
||||
})
|
||||
|
@ -9,4 +9,5 @@ export default defineConfig({
|
||||
minify: true,
|
||||
cssMinify: false,
|
||||
},
|
||||
cacheDir: 'node_modules/.vite-no-css-minify',
|
||||
})
|
||||
|
@ -21,4 +21,5 @@ export default defineConfig({
|
||||
testConfig: {
|
||||
baseRoute: '/relative-base/',
|
||||
},
|
||||
cacheDir: 'node_modules/.vite-relative-base',
|
||||
})
|
||||
|
@ -11,4 +11,5 @@ export default defineConfig({
|
||||
},
|
||||
outDir: 'dist/lib',
|
||||
},
|
||||
cacheDir: 'node_modules/.vite-dyimport',
|
||||
})
|
||||
|
@ -9,4 +9,5 @@ export default defineConfig({
|
||||
outDir: 'dist/nominify',
|
||||
},
|
||||
plugins: [],
|
||||
cacheDir: 'node_modules/.vite-nominify',
|
||||
})
|
||||
|
@ -23,4 +23,5 @@ export default defineConfig({
|
||||
},
|
||||
modulePreload: false,
|
||||
},
|
||||
cacheDir: 'node_modules/.vite-preload-disabled',
|
||||
})
|
||||
|
@ -38,4 +38,5 @@ export default defineConfig({
|
||||
return { relative: true }
|
||||
},
|
||||
},
|
||||
cacheDir: 'node_modules/.vite-resolve-deps',
|
||||
})
|
||||
|
@ -44,4 +44,5 @@ export default vite.defineConfig({
|
||||
},
|
||||
},
|
||||
],
|
||||
cacheDir: 'node_modules/.vite-es',
|
||||
})
|
||||
|
@ -47,4 +47,5 @@ export default vite.defineConfig({
|
||||
},
|
||||
},
|
||||
plugins: [workerPluginTestPlugin()],
|
||||
cacheDir: 'node_modules/.vite-iife',
|
||||
})
|
||||
|
@ -46,4 +46,5 @@ export default vite.defineConfig({
|
||||
},
|
||||
},
|
||||
],
|
||||
cacheDir: 'node_modules/.vite-relative-base',
|
||||
})
|
||||
|
@ -12,10 +12,11 @@ export default (sourcemap) => {
|
||||
sourcemap = true
|
||||
}
|
||||
|
||||
const typeName =
|
||||
typeof sourcemap === 'boolean' ? 'sourcemap' : 'sourcemap-' + sourcemap
|
||||
|
||||
return vite.defineConfig({
|
||||
base: `/iife-${
|
||||
typeof sourcemap === 'boolean' ? 'sourcemap' : 'sourcemap-' + sourcemap
|
||||
}/`,
|
||||
base: `/iife-${typeName}/`,
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': __dirname,
|
||||
@ -33,9 +34,7 @@ export default (sourcemap) => {
|
||||
},
|
||||
},
|
||||
build: {
|
||||
outDir: `dist/iife-${
|
||||
typeof sourcemap === 'boolean' ? 'sourcemap' : 'sourcemap-' + sourcemap
|
||||
}/`,
|
||||
outDir: `dist/iife-${typeName}/`,
|
||||
sourcemap: sourcemap,
|
||||
rollupOptions: {
|
||||
output: {
|
||||
@ -46,5 +45,6 @@ export default (sourcemap) => {
|
||||
},
|
||||
},
|
||||
plugins: [workerPluginTestPlugin()],
|
||||
cacheDir: `node_modules/.vite-sourcemap-${typeName}`,
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user