unplugin-isolated-decl 0.15.3 → 0.15.4
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/core/utils.d.ts +2 -2
- package/dist/esbuild.js +6 -1
- package/dist/farm.js +6 -1
- package/dist/index.js +1 -1
- package/dist/rolldown.js +6 -1
- package/dist/rollup.js +6 -1
- package/dist/{src-DW22l0rB.js → src-Ebd77-Wc.js} +6 -2
- package/dist/vite.js +6 -1
- package/package.json +16 -17
package/dist/core/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const debug:
|
|
1
|
+
import { type Debugger } from "obug";
|
|
2
|
+
export declare const debug: Debugger;
|
|
3
3
|
export declare function lowestCommonAncestor(...filepaths: string[]): string;
|
|
4
4
|
export declare function stripExt(filename: string): string;
|
|
5
5
|
export declare function resolveEntry(input: string | string[] | Record<string, string>, userInputBase?: string): {
|
package/dist/esbuild.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import "./transformer-DIxtVpUn.js";
|
|
2
|
-
import { t as IsolatedDecl } from "./src-
|
|
2
|
+
import { t as IsolatedDecl } from "./src-Ebd77-Wc.js";
|
|
3
3
|
|
|
4
4
|
//#region src/esbuild.ts
|
|
5
5
|
/**
|
|
6
|
+
* This entry file is for esbuild plugin.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
6
11
|
* Esbuild plugin
|
|
7
12
|
*
|
|
8
13
|
* @example
|
package/dist/farm.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import "./transformer-DIxtVpUn.js";
|
|
2
|
-
import { t as IsolatedDecl } from "./src-
|
|
2
|
+
import { t as IsolatedDecl } from "./src-Ebd77-Wc.js";
|
|
3
3
|
|
|
4
4
|
//#region src/farm.ts
|
|
5
5
|
/**
|
|
6
|
+
* This entry file is for Farm plugin.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
6
11
|
* Farm plugin
|
|
7
12
|
*
|
|
8
13
|
* @example
|
package/dist/index.js
CHANGED
package/dist/rolldown.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import "./transformer-DIxtVpUn.js";
|
|
2
|
-
import { t as IsolatedDecl } from "./src-
|
|
2
|
+
import { t as IsolatedDecl } from "./src-Ebd77-Wc.js";
|
|
3
3
|
|
|
4
4
|
//#region src/rolldown.ts
|
|
5
5
|
/**
|
|
6
|
+
* This entry file is for Rolldown plugin.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
6
11
|
* Rolldown plugin
|
|
7
12
|
*
|
|
8
13
|
* @example
|
package/dist/rollup.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import "./transformer-DIxtVpUn.js";
|
|
2
|
-
import { t as IsolatedDecl } from "./src-
|
|
2
|
+
import { t as IsolatedDecl } from "./src-Ebd77-Wc.js";
|
|
3
3
|
|
|
4
4
|
//#region src/rollup.ts
|
|
5
5
|
/**
|
|
6
|
+
* This entry file is for Rollup plugin.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
6
11
|
* Rollup plugin
|
|
7
12
|
*
|
|
8
13
|
* @example
|
|
@@ -5,7 +5,7 @@ import MagicString from "magic-string";
|
|
|
5
5
|
import { parseAsync } from "oxc-parser";
|
|
6
6
|
import { createUnplugin } from "unplugin";
|
|
7
7
|
import { createFilter } from "unplugin-utils";
|
|
8
|
-
import Debug from "
|
|
8
|
+
import Debug from "obug";
|
|
9
9
|
|
|
10
10
|
//#region src/core/utils.ts
|
|
11
11
|
const debug = Debug("unplugin-isolated-decl");
|
|
@@ -32,7 +32,7 @@ function stripExt(filename) {
|
|
|
32
32
|
}
|
|
33
33
|
function resolveEntry(input, userInputBase) {
|
|
34
34
|
if (typeof input === "string") input = [input];
|
|
35
|
-
const entryMap =
|
|
35
|
+
const entryMap = Array.isArray(input) ? void 0 : Object.fromEntries(Object.entries(input).map(([k, v]) => [path.resolve(stripExt(v)), k]));
|
|
36
36
|
const arr = Array.isArray(input) && input ? input : Object.values(input);
|
|
37
37
|
return {
|
|
38
38
|
entryMap,
|
|
@@ -108,6 +108,10 @@ function resolveOptions(options) {
|
|
|
108
108
|
//#endregion
|
|
109
109
|
//#region src/index.ts
|
|
110
110
|
/**
|
|
111
|
+
* This entry file is for main unplugin.
|
|
112
|
+
* @module
|
|
113
|
+
*/
|
|
114
|
+
/**
|
|
111
115
|
* The main unplugin instance.
|
|
112
116
|
*/
|
|
113
117
|
const IsolatedDecl = createUnplugin((rawOptions = {}) => {
|
package/dist/vite.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import "./transformer-DIxtVpUn.js";
|
|
2
|
-
import { t as IsolatedDecl } from "./src-
|
|
2
|
+
import { t as IsolatedDecl } from "./src-Ebd77-Wc.js";
|
|
3
3
|
|
|
4
4
|
//#region src/vite.ts
|
|
5
5
|
/**
|
|
6
|
+
* This entry file is for Vite plugin.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
6
11
|
* Vite plugin
|
|
7
12
|
*
|
|
8
13
|
* @example
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unplugin-isolated-decl",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.4",
|
|
4
4
|
"description": "A blazing-fast tool for generating isolated declarations.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -61,38 +61,37 @@
|
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"debug": "^4.4.3",
|
|
65
64
|
"magic-string": "^0.30.21",
|
|
66
|
-
"
|
|
67
|
-
"oxc-
|
|
65
|
+
"obug": "^0.1.1",
|
|
66
|
+
"oxc-parser": ">=0.97.0",
|
|
67
|
+
"oxc-transform": ">=0.97.0",
|
|
68
68
|
"unplugin": "^2.3.10",
|
|
69
69
|
"unplugin-utils": "^0.3.1"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@farmfe/core": "^1.7.11",
|
|
73
|
-
"@oxc-project/types": "^0.
|
|
74
|
-
"@rollup/plugin-alias": "^
|
|
75
|
-
"@swc/core": "^1.
|
|
76
|
-
"@sxzz/eslint-config": "^7.2.
|
|
73
|
+
"@oxc-project/types": "^0.97.0",
|
|
74
|
+
"@rollup/plugin-alias": "^6.0.0",
|
|
75
|
+
"@swc/core": "^1.15.1",
|
|
76
|
+
"@sxzz/eslint-config": "^7.2.10",
|
|
77
77
|
"@sxzz/prettier-config": "^2.2.4",
|
|
78
78
|
"@sxzz/test-utils": "^0.5.12",
|
|
79
|
-
"@types/
|
|
80
|
-
"@types/node": "^24.9.1",
|
|
79
|
+
"@types/node": "^24.10.1",
|
|
81
80
|
"bumpp": "^10.3.1",
|
|
82
|
-
"esbuild": "^0.
|
|
83
|
-
"eslint": "^9.
|
|
81
|
+
"esbuild": "^0.27.0",
|
|
82
|
+
"eslint": "^9.39.1",
|
|
84
83
|
"fast-glob": "^3.3.3",
|
|
85
84
|
"prettier": "^3.6.2",
|
|
86
85
|
"publint": "^0.3.15",
|
|
87
|
-
"rolldown": "^1.0.0-beta.
|
|
88
|
-
"rollup": "^4.
|
|
86
|
+
"rolldown": "^1.0.0-beta.49",
|
|
87
|
+
"rollup": "^4.53.2",
|
|
89
88
|
"tinyglobby": "^0.2.15",
|
|
90
|
-
"tsdown": "^0.
|
|
89
|
+
"tsdown": "^0.16.3",
|
|
91
90
|
"tsx": "^4.20.6",
|
|
92
91
|
"typescript": "^5.9.3",
|
|
93
92
|
"unplugin-oxc": "^0.5.3",
|
|
94
|
-
"vite": "^7.
|
|
95
|
-
"vitest": "^4.0.
|
|
93
|
+
"vite": "^7.2.2",
|
|
94
|
+
"vitest": "^4.0.8"
|
|
96
95
|
},
|
|
97
96
|
"engines": {
|
|
98
97
|
"node": ">=20.18.0"
|