From a85fdf18e2763f178085ff11a3ce98357c0c8791 Mon Sep 17 00:00:00 2001 From: zhizheng Date: Thu, 5 Jun 2025 01:24:48 +0800 Subject: [PATCH] fix(update): `fresh/runtime` import specifier updated incorrectly (#3009) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …ports The original code is shown in the following figure, and there is an incorrect usage in it. ![1749021630760](https://github.com/user-attachments/assets/2d603bdd-6dd7-4ddf-9dae-8d62b8bdaedf) --- update/src/update.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update/src/update.ts b/update/src/update.ts index d79f9906..acafb7c6 100644 --- a/update/src/update.ts +++ b/update/src/update.ts @@ -313,7 +313,7 @@ async function updateFile(sourceFile: tsmorph.SourceFile): Promise { if (!hasRuntimeImport && newImports.runtime.size > 0) { sourceFile.addImportDeclaration({ moduleSpecifier: "fresh/runtime", - namedImports: Array.from(newImports.core), + namedImports: Array.from(newImports.runtime), }); } if (newImports.compat.size > 0) {