diff --git a/src/core/script.ts b/src/core/script.ts index 32ad69d2..e4c61be8 100644 --- a/src/core/script.ts +++ b/src/core/script.ts @@ -118,7 +118,8 @@ export function canInlineMain( } if ( lang === 'ts' && - (options.devServer || pluginContext.framework === 'webpack') + (options.devServer || + ['esbuild', 'rspack'].includes(pluginContext.framework)) ) { return true }