unplugin-isolated-decl 0.15.1 → 0.15.2
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/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/api.js +1 -1
- package/dist/esbuild.js +2 -2
- package/dist/farm.js +2 -2
- package/dist/index.js +2 -2
- package/dist/rolldown.js +2 -2
- package/dist/rollup.js +2 -2
- package/dist/{src-DVArCSR0.js → src-DLkYB3Hu.js} +1 -1
- package/dist/{transformer-CiAWE027.js → transformer-BuEMpBHT.js} +2 -4
- package/dist/vite.js +2 -2
- package/package.json +22 -22
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright © 2024-PRESENT
|
|
3
|
+
Copyright © 2024-PRESENT Kevin Deng (https://github.com/sxzz)
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -178,7 +178,7 @@ Patch `export default` in `.d.cts` to `export =`
|
|
|
178
178
|
|
|
179
179
|
## License
|
|
180
180
|
|
|
181
|
-
[MIT](./LICENSE) License © 2024-PRESENT [
|
|
181
|
+
[MIT](./LICENSE) License © 2024-PRESENT [Kevin Deng](https://github.com/sxzz)
|
|
182
182
|
|
|
183
183
|
<!-- Badges -->
|
|
184
184
|
|
package/dist/api.js
CHANGED
package/dist/esbuild.js
CHANGED
package/dist/farm.js
CHANGED
package/dist/index.js
CHANGED
package/dist/rolldown.js
CHANGED
package/dist/rollup.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { appendMapUrl, generateDtsMap, oxcTransform, swcTransform, tsTransform } from "./transformer-
|
|
1
|
+
import { appendMapUrl, generateDtsMap, oxcTransform, swcTransform, tsTransform } from "./transformer-BuEMpBHT.js";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
4
4
|
import MagicString from "magic-string";
|
|
@@ -40,9 +40,8 @@ async function swcTransform(id, code) {
|
|
|
40
40
|
experimental: { emitIsolatedDts: true }
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
|
-
const output = JSON.parse(result.output);
|
|
44
43
|
return {
|
|
45
|
-
code: output.__swc_isolated_declarations__,
|
|
44
|
+
code: JSON.parse(result.output).__swc_isolated_declarations__,
|
|
46
45
|
errors: []
|
|
47
46
|
};
|
|
48
47
|
} catch (error) {
|
|
@@ -90,8 +89,7 @@ async function tsTransform(id, code, transformOptions, sourceMap) {
|
|
|
90
89
|
}
|
|
91
90
|
function stripMapUrl(code) {
|
|
92
91
|
const lines = code.split("\n");
|
|
93
|
-
|
|
94
|
-
if (lastLine?.startsWith("//# sourceMappingURL=")) return lines.slice(0, -1).join("\n");
|
|
92
|
+
if (lines.at(-1)?.startsWith("//# sourceMappingURL=")) return lines.slice(0, -1).join("\n");
|
|
95
93
|
return code;
|
|
96
94
|
}
|
|
97
95
|
function appendMapUrl(map, filename) {
|
package/dist/vite.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unplugin-isolated-decl",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.2",
|
|
4
4
|
"description": "A blazing-fast tool for generating isolated declarations.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"type": "git",
|
|
20
20
|
"url": "git+https://github.com/unplugin/unplugin-isolated-decl.git"
|
|
21
21
|
},
|
|
22
|
-
"author": "
|
|
22
|
+
"author": "Kevin Deng <sxzz@sxzz.moe>",
|
|
23
23
|
"funding": "https://github.com/sponsors/sxzz",
|
|
24
24
|
"files": [
|
|
25
25
|
"dist"
|
|
@@ -61,37 +61,37 @@
|
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"debug": "^4.4.
|
|
65
|
-
"magic-string": "^0.30.
|
|
66
|
-
"oxc-parser": ">=0.
|
|
67
|
-
"oxc-transform": ">=0.
|
|
68
|
-
"unplugin": "^2.3.
|
|
69
|
-
"unplugin-utils": "^0.
|
|
64
|
+
"debug": "^4.4.3",
|
|
65
|
+
"magic-string": "^0.30.19",
|
|
66
|
+
"oxc-parser": ">=0.89.0",
|
|
67
|
+
"oxc-transform": ">=0.89.0",
|
|
68
|
+
"unplugin": "^2.3.10",
|
|
69
|
+
"unplugin-utils": "^0.3.0"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@farmfe/core": "^1.7.11",
|
|
73
|
-
"@oxc-project/types": "^0.
|
|
73
|
+
"@oxc-project/types": "^0.89.0",
|
|
74
74
|
"@rollup/plugin-alias": "^5.1.1",
|
|
75
|
-
"@swc/core": "^1.13.
|
|
76
|
-
"@sxzz/eslint-config": "^7.1.
|
|
77
|
-
"@sxzz/prettier-config": "^2.2.
|
|
78
|
-
"@sxzz/test-utils": "^0.5.
|
|
75
|
+
"@swc/core": "^1.13.5",
|
|
76
|
+
"@sxzz/eslint-config": "^7.1.4",
|
|
77
|
+
"@sxzz/prettier-config": "^2.2.4",
|
|
78
|
+
"@sxzz/test-utils": "^0.5.11",
|
|
79
79
|
"@types/debug": "^4.1.12",
|
|
80
|
-
"@types/node": "^24.
|
|
80
|
+
"@types/node": "^24.5.0",
|
|
81
81
|
"bumpp": "^10.2.3",
|
|
82
82
|
"esbuild": "^0.25.9",
|
|
83
|
-
"eslint": "^9.
|
|
83
|
+
"eslint": "^9.35.0",
|
|
84
84
|
"fast-glob": "^3.3.3",
|
|
85
85
|
"prettier": "^3.6.2",
|
|
86
86
|
"publint": "^0.3.12",
|
|
87
|
-
"rolldown": "^1.0.0-beta.
|
|
88
|
-
"rollup": "^4.
|
|
89
|
-
"tinyglobby": "^0.2.
|
|
90
|
-
"tsdown": "^0.
|
|
91
|
-
"tsx": "^4.20.
|
|
87
|
+
"rolldown": "^1.0.0-beta.38",
|
|
88
|
+
"rollup": "^4.50.2",
|
|
89
|
+
"tinyglobby": "^0.2.15",
|
|
90
|
+
"tsdown": "^0.15.1",
|
|
91
|
+
"tsx": "^4.20.5",
|
|
92
92
|
"typescript": "^5.9.2",
|
|
93
|
-
"unplugin-oxc": "^0.5.
|
|
94
|
-
"vite": "^7.1.
|
|
93
|
+
"unplugin-oxc": "^0.5.1",
|
|
94
|
+
"vite": "^7.1.5",
|
|
95
95
|
"vitest": "^3.2.4"
|
|
96
96
|
},
|
|
97
97
|
"engines": {
|