Skip to content

Commit

Permalink
fix: inline ts script
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Nov 27, 2023
1 parent 088a67d commit b3259d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ export function canInlineMain(
}
if (
lang === 'ts' &&
(options.devServer || pluginContext.framework === 'webpack')
(options.devServer ||
['esbuild', 'rspack'].includes(pluginContext.framework))
) {
return true
}
Expand Down

0 comments on commit b3259d6

Please sign in to comment.