Skip to content

Commit 3cb5984

Browse files
committed
fix: pass ssr-webwork
1 parent 74e649b commit 3cb5984

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

packages/vite/src/node/build.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ export async function build(
635635
}
636636

637637
const ssrNodeBuild = ssr && config.ssr.target === 'node'
638-
// const ssrWorkerBuild = ssr && config.ssr.target === 'webworker'
638+
const ssrWorkerBuild = ssr && config.ssr.target === 'webworker'
639639

640640
const format = output.format || 'es'
641641
const jsExt =
@@ -677,11 +677,11 @@ export async function build(
677677
assetFileNames: libOptions
678678
? `[name].[ext]`
679679
: 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)),
685685
...output,
686686
}
687687
}

vitest.config.e2e.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export default defineConfig({
1212
test: {
1313
include: ['./playground/**/*.spec.[tj]s'],
1414
exclude: [
15-
'./playground/alias/**/*.spec.[tj]s',
1615
'./playground/assets/**/*.spec.[tj]s',
1716
'./playground/backend-integration/**/*.spec.[tj]s',
1817
'./playground/css-codesplit/**/*.spec.[tj]s',
@@ -27,7 +26,6 @@ export default defineConfig({
2726
'./playground/optimize-deps/**/*.spec.[tj]s',
2827
'./playground/resolve-config/**/*.spec.[tj]s',
2928
'./playground/ssr-resolve/**/*.spec.[tj]s',
30-
'./playground/ssr-webworker/**/*.spec.[tj]s',
3129
'./playground/worker/**/*.spec.[tj]s',
3230
// skip link vite tets at local
3331
'**/node_modules/**',

0 commit comments

Comments
 (0)