unplugin-isolated-decl 0.12.0 → 0.13.1
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/README.md +2 -3
- package/dist/core/options.d.ts +5 -6
- package/dist/esbuild.js +1 -1
- package/dist/farm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/rolldown.js +1 -1
- package/dist/rollup.js +1 -1
- package/dist/{src-D9EUDQkW.js → src-YG5t1Y3E.js} +1 -1
- package/dist/vite.js +1 -1
- package/package.json +9 -12
package/README.md
CHANGED
|
@@ -101,12 +101,11 @@ export interface Options {
|
|
|
101
101
|
exclude?: FilterPattern
|
|
102
102
|
enforce?: 'pre' | 'post' | undefined
|
|
103
103
|
/**
|
|
104
|
-
* You
|
|
105
|
-
* oxc: oxc-transform
|
|
104
|
+
* You should install the transformer manually if you are not using oxc.
|
|
106
105
|
* swc: @swc/core
|
|
107
106
|
* typescript: typescript
|
|
108
107
|
*
|
|
109
|
-
* @default
|
|
108
|
+
* @default oxc
|
|
110
109
|
*/
|
|
111
110
|
transformer?: 'oxc' | 'swc' | 'typescript'
|
|
112
111
|
/**
|
package/dist/core/options.d.ts
CHANGED
|
@@ -26,19 +26,18 @@ export type Options = {
|
|
|
26
26
|
rewriteImports?: (id: string, importer: string) => string | void | null | undefined
|
|
27
27
|
} & ({
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* @default 'oxc'
|
|
30
30
|
*/
|
|
31
|
-
transformer?: "
|
|
31
|
+
transformer?: "oxc"
|
|
32
|
+
transformOptions?: Omit<IsolatedDeclarationsOptions, "sourceMap">
|
|
32
33
|
} | {
|
|
33
34
|
/**
|
|
34
|
-
* `
|
|
35
|
+
* `@swc/core` should be installed yourself.
|
|
35
36
|
*/
|
|
36
|
-
transformer?: "
|
|
37
|
-
transformOptions?: Omit<IsolatedDeclarationsOptions, "sourceMap">
|
|
37
|
+
transformer?: "swc"
|
|
38
38
|
} | {
|
|
39
39
|
/**
|
|
40
40
|
* `typescript` should be installed yourself.
|
|
41
|
-
* @default 'typescript'
|
|
42
41
|
*/
|
|
43
42
|
transformer?: "typescript"
|
|
44
43
|
/** Only for typescript transformer */
|
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
|
@@ -98,7 +98,7 @@ function resolveOptions(options) {
|
|
|
98
98
|
exclude: options.exclude || [/node_modules/],
|
|
99
99
|
enforce: "enforce" in options ? options.enforce : "pre",
|
|
100
100
|
sourceMap: options.sourceMap || false,
|
|
101
|
-
transformer: options.transformer || "
|
|
101
|
+
transformer: options.transformer || "oxc",
|
|
102
102
|
ignoreErrors: options.ignoreErrors || false,
|
|
103
103
|
extraOutdir: options.extraOutdir,
|
|
104
104
|
patchCjsDefaultExport: options.patchCjsDefaultExport || false,
|
package/dist/vite.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unplugin-isolated-decl",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"description": "A blazing-fast tool for generating isolated declarations.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"url": "git+https://github.com/unplugin/unplugin-isolated-decl.git"
|
|
21
21
|
},
|
|
22
22
|
"author": "三咲智子 Kevin Deng <sxzz@sxzz.moe>",
|
|
23
|
+
"funding": "https://github.com/sponsors/sxzz",
|
|
23
24
|
"files": [
|
|
24
25
|
"dist"
|
|
25
26
|
],
|
|
@@ -49,16 +50,12 @@
|
|
|
49
50
|
},
|
|
50
51
|
"peerDependencies": {
|
|
51
52
|
"@swc/core": "^1.6.6",
|
|
52
|
-
"oxc-transform": ">=0.42.0",
|
|
53
53
|
"typescript": "^5.5.2"
|
|
54
54
|
},
|
|
55
55
|
"peerDependenciesMeta": {
|
|
56
56
|
"@swc/core": {
|
|
57
57
|
"optional": true
|
|
58
58
|
},
|
|
59
|
-
"oxc-transform": {
|
|
60
|
-
"optional": true
|
|
61
|
-
},
|
|
62
59
|
"typescript": {
|
|
63
60
|
"optional": true
|
|
64
61
|
}
|
|
@@ -66,33 +63,33 @@
|
|
|
66
63
|
"dependencies": {
|
|
67
64
|
"debug": "^4.4.0",
|
|
68
65
|
"magic-string": "^0.30.17",
|
|
69
|
-
"oxc-parser": "^0.
|
|
66
|
+
"oxc-parser": "^0.54.0",
|
|
67
|
+
"oxc-transform": "^0.54.0",
|
|
70
68
|
"unplugin": "^2.2.0",
|
|
71
69
|
"unplugin-utils": "^0.2.4"
|
|
72
70
|
},
|
|
73
71
|
"devDependencies": {
|
|
74
72
|
"@farmfe/core": "^1.6.6",
|
|
75
|
-
"@oxc-project/types": "^0.
|
|
73
|
+
"@oxc-project/types": "^0.55.0",
|
|
76
74
|
"@rollup/plugin-alias": "^5.1.1",
|
|
77
|
-
"@swc/core": "^1.11.
|
|
75
|
+
"@swc/core": "^1.11.7",
|
|
78
76
|
"@sxzz/eslint-config": "^5.2.0",
|
|
79
77
|
"@sxzz/prettier-config": "^2.2.0",
|
|
80
78
|
"@sxzz/test-utils": "^0.5.1",
|
|
81
79
|
"@types/debug": "^4.1.12",
|
|
82
|
-
"@types/node": "^22.13.
|
|
80
|
+
"@types/node": "^22.13.9",
|
|
83
81
|
"bumpp": "^10.0.3",
|
|
84
82
|
"esbuild": "^0.25.0",
|
|
85
83
|
"eslint": "^9.21.0",
|
|
86
84
|
"fast-glob": "^3.3.3",
|
|
87
|
-
"oxc-transform": "^0.53.0",
|
|
88
85
|
"prettier": "^3.5.3",
|
|
89
86
|
"rolldown": "^1.0.0-beta.3",
|
|
90
87
|
"rollup": "^4.34.9",
|
|
91
88
|
"tinyglobby": "^0.2.12",
|
|
92
|
-
"tsdown": "^0.6.
|
|
89
|
+
"tsdown": "^0.6.3",
|
|
93
90
|
"tsx": "^4.19.3",
|
|
94
91
|
"typescript": "^5.8.2",
|
|
95
|
-
"unplugin-oxc": "^0.2.
|
|
92
|
+
"unplugin-oxc": "^0.2.6",
|
|
96
93
|
"vite": "^6.2.0",
|
|
97
94
|
"vitest": "^3.0.7"
|
|
98
95
|
},
|