From 350a5df70a4da3a781b44d60fe6940fe0a456d82 Mon Sep 17 00:00:00 2001 From: npmrun <1549469775@qq.com> Date: Tue, 8 Apr 2025 21:19:10 +0800 Subject: [PATCH] fix bug --- scripts/build-one.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build-one.ts b/scripts/build-one.ts index 2c8b666..c9573fd 100644 --- a/scripts/build-one.ts +++ b/scripts/build-one.ts @@ -12,7 +12,7 @@ export async function buildOne( const pkgInfo = await import( URL.pathToFileURL(path.resolve(rootDir, "package.json")).href ); - const alias = { [pkgInfo.name]: path.resolve(rootDir, "./src"), ["@"]: path.resolve(rootDir, "./src") }; + const alias = { [pkgInfo.name]: path.resolve(rootDir, "./src"), ["@/"]: path.resolve(rootDir, "./src") }; return build(rootDir, false, { stub: type === "stub",