From 7a4b30ac98c4a8ade49edf20dcd7aafcd23d6e45 Mon Sep 17 00:00:00 2001 From: YouXam Date: Mon, 29 Jan 2024 00:35:44 +0800 Subject: [PATCH] fix: dynamic import failed Signed-off-by: YouXam --- src/output/moduleCompiler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output/moduleCompiler.ts b/src/output/moduleCompiler.ts index 536497ef..e9d5f3c8 100644 --- a/src/output/moduleCompiler.ts +++ b/src/output/moduleCompiler.ts @@ -295,7 +295,7 @@ function processModule(store: Store, src: string, filename: string) { s.overwrite( arg.start!, arg.end!, - JSON.stringify(arg.value.replace(/^\.\/+/, '')), + JSON.stringify(arg.value.replace(/^\.\/+/, 'src/')), ) } }