Skip to content

Commit b3259d6

Browse files
committed
fix: inline ts script
1 parent 088a67d commit b3259d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/script.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ export function canInlineMain(
118118
}
119119
if (
120120
lang === 'ts' &&
121-
(options.devServer || pluginContext.framework === 'webpack')
121+
(options.devServer ||
122+
['esbuild', 'rspack'].includes(pluginContext.framework))
122123
) {
123124
return true
124125
}

0 commit comments

Comments
 (0)