unplugin-isolated-decl 0.13.9 → 0.13.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esbuild.js +1 -1
- package/dist/farm.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/rolldown.js +1 -1
- package/dist/rollup.js +1 -1
- package/dist/{src-B5I0aiDn.js → src-DVArCSR0.js} +8 -2
- package/dist/vite.js +1 -1
- package/package.json +7 -7
package/dist/esbuild.js
CHANGED
package/dist/farm.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/rolldown.js
CHANGED
package/dist/rollup.js
CHANGED
|
@@ -198,8 +198,14 @@ const IsolatedDecl = createUnplugin((rawOptions = {}) => {
|
|
|
198
198
|
imports,
|
|
199
199
|
map
|
|
200
200
|
});
|
|
201
|
-
const
|
|
202
|
-
|
|
201
|
+
const typeImports = program.body.filter((node) => {
|
|
202
|
+
if (!("source" in node) || !node.source) return false;
|
|
203
|
+
if ("importKind" in node && node.importKind === "type") return true;
|
|
204
|
+
if ("exportKind" in node && node.exportKind === "type") return true;
|
|
205
|
+
if (node.type === "ImportDeclaration") return !!node.specifiers && node.specifiers.every((spec) => spec.type === "ImportSpecifier" && spec.importKind === "type");
|
|
206
|
+
return node.type === "ExportNamedDeclaration" && node.specifiers && node.specifiers.every((spec) => spec.exportKind === "type");
|
|
207
|
+
});
|
|
208
|
+
for (const { source } of typeImports) {
|
|
203
209
|
const resolved = (await resolve(context, source.value, id))?.id;
|
|
204
210
|
if (resolved && filter(resolved) && !outputFiles[stripExt(resolved)]) {
|
|
205
211
|
let source$1;
|
package/dist/vite.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unplugin-isolated-decl",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.10",
|
|
4
4
|
"description": "A blazing-fast tool for generating isolated declarations.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -63,16 +63,16 @@
|
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"debug": "^4.4.0",
|
|
65
65
|
"magic-string": "^0.30.17",
|
|
66
|
-
"oxc-parser": "^0.
|
|
67
|
-
"oxc-transform": "^0.
|
|
66
|
+
"oxc-parser": "^0.66.0",
|
|
67
|
+
"oxc-transform": "^0.66.0",
|
|
68
68
|
"unplugin": "^2.3.2",
|
|
69
69
|
"unplugin-utils": "^0.2.4"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@farmfe/core": "^1.7.4",
|
|
73
|
-
"@oxc-project/types": "^0.
|
|
73
|
+
"@oxc-project/types": "^0.66.0",
|
|
74
74
|
"@rollup/plugin-alias": "^5.1.1",
|
|
75
|
-
"@swc/core": "^1.11.
|
|
75
|
+
"@swc/core": "^1.11.22",
|
|
76
76
|
"@sxzz/eslint-config": "^6.1.2",
|
|
77
77
|
"@sxzz/prettier-config": "^2.2.1",
|
|
78
78
|
"@sxzz/test-utils": "^0.5.5",
|
|
@@ -86,11 +86,11 @@
|
|
|
86
86
|
"rolldown": "^1.0.0-beta.8",
|
|
87
87
|
"rollup": "^4.40.0",
|
|
88
88
|
"tinyglobby": "^0.2.13",
|
|
89
|
-
"tsdown": "^0.9.
|
|
89
|
+
"tsdown": "^0.9.6",
|
|
90
90
|
"tsx": "^4.19.3",
|
|
91
91
|
"typescript": "^5.8.3",
|
|
92
92
|
"unplugin-oxc": "^0.3.5",
|
|
93
|
-
"vite": "^6.3.
|
|
93
|
+
"vite": "^6.3.3",
|
|
94
94
|
"vitest": "^3.1.2"
|
|
95
95
|
},
|
|
96
96
|
"engines": {
|