From 64ec1117697029895284e248d79698f802cf1aa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 11 Sep 2024 11:48:57 +0900 Subject: [PATCH] chore(bindings/node): Fix type definition - Closes https://github.com/swc-project/swc/issues/9510 --- packages/core/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index ee7b3e77d9bf..5c7b5ecb0c4e 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -14,7 +14,8 @@ export type * from "@swc/types"; export { newMangleNameCache as experimental_newMangleNameCache } from "./binding"; import { BundleInput, compileBundleOptions } from "./spack"; import * as assert from "assert"; -import type { NapiMinifyExtra } from "../binding"; +// @ts-ignore +import type { NapiMinifyExtra } from "./binding"; // Allow overrides to the location of the .node binding file const bindingsOverride = process.env["SWC_BINARY_PATH"];