From f79e9ad91e22ed30c18fe19e87934ce6587346c2 Mon Sep 17 00:00:00 2001 From: underfin Date: Mon, 23 Dec 2024 14:47:19 +0800 Subject: [PATCH] feat(napi/parser): add `crate-type: "lib"` (#8067) The rolldown need export it to instead of `rollup/parseAst`, ref https://rollupjs.org/javascript-api/#accessing-the-parser --- napi/parser/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/napi/parser/Cargo.toml b/napi/parser/Cargo.toml index 85eb054696df3..7ea1e3154d9d1 100644 --- a/napi/parser/Cargo.toml +++ b/napi/parser/Cargo.toml @@ -16,7 +16,7 @@ description.workspace = true workspace = true [lib] -crate-type = ["cdylib"] +crate-type = ["cdylib", "lib"] test = false doctest = false