From b3259d6ad00b47e7ec3af4bd6652ffe974a39027 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Mon, 27 Nov 2023 14:52:16 +0800 Subject: [PATCH] fix: inline ts script --- src/core/script.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }