File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -635,7 +635,7 @@ export async function build(
635
635
}
636
636
637
637
const ssrNodeBuild = ssr && config . ssr . target === 'node'
638
- // const ssrWorkerBuild = ssr && config.ssr.target === 'webworker'
638
+ const ssrWorkerBuild = ssr && config . ssr . target === 'webworker'
639
639
640
640
const format = output . format || 'es'
641
641
const jsExt =
@@ -677,11 +677,11 @@ export async function build(
677
677
assetFileNames : libOptions
678
678
? `[name].[ext]`
679
679
: path . posix . join ( options . assetsDir , `[name]-[hash].[ext]` ) ,
680
- // inlineDynamicImports:
681
- // output.format === 'umd' ||
682
- // output.format === 'iife' ||
683
- // (ssrWorkerBuild &&
684
- // (typeof input === 'string' || Object.keys(input).length === 1)),
680
+ inlineDynamicImports :
681
+ // output.format === 'umd' ||
682
+ output . format === 'iife' ||
683
+ ( ssrWorkerBuild &&
684
+ ( typeof input === 'string' || Object . keys ( input ) . length === 1 ) ) ,
685
685
...output ,
686
686
}
687
687
}
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ export default defineConfig({
12
12
test : {
13
13
include : [ './playground/**/*.spec.[tj]s' ] ,
14
14
exclude : [
15
- './playground/alias/**/*.spec.[tj]s' ,
16
15
'./playground/assets/**/*.spec.[tj]s' ,
17
16
'./playground/backend-integration/**/*.spec.[tj]s' ,
18
17
'./playground/css-codesplit/**/*.spec.[tj]s' ,
@@ -27,7 +26,6 @@ export default defineConfig({
27
26
'./playground/optimize-deps/**/*.spec.[tj]s' ,
28
27
'./playground/resolve-config/**/*.spec.[tj]s' ,
29
28
'./playground/ssr-resolve/**/*.spec.[tj]s' ,
30
- './playground/ssr-webworker/**/*.spec.[tj]s' ,
31
29
'./playground/worker/**/*.spec.[tj]s' ,
32
30
// skip link vite tets at local
33
31
'**/node_modules/**' ,
You can’t perform that action at this time.
0 commit comments