unplugin-isolated-decl 0.12.0 → 0.13.0

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 CHANGED
@@ -101,12 +101,11 @@ export interface Options {
101
101
  exclude?: FilterPattern
102
102
  enforce?: 'pre' | 'post' | undefined
103
103
  /**
104
- * You need to install one of the supported transformers yourself.
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 typescript
108
+ * @default oxc
110
109
  */
111
110
  transformer?: 'oxc' | 'swc' | 'typescript'
112
111
  /**
@@ -26,19 +26,18 @@ export type Options = {
26
26
  rewriteImports?: (id: string, importer: string) => string | void | null | undefined
27
27
  } & ({
28
28
  /**
29
- * `@swc/core` should be installed yourself.
29
+ * @default 'oxc'
30
30
  */
31
- transformer?: "swc"
31
+ transformer?: "oxc"
32
+ transformOptions?: Omit<IsolatedDeclarationsOptions, "sourceMap">
32
33
  } | {
33
34
  /**
34
- * `oxc-transform` should be installed yourself.
35
+ * `@swc/core` should be installed yourself.
35
36
  */
36
- transformer?: "oxc"
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
@@ -1,5 +1,5 @@
1
1
  import "./transformer-Bp3NCHCk.js";
2
- import { IsolatedDecl } from "./src-D9EUDQkW.js";
2
+ import { IsolatedDecl } from "./src-YG5t1Y3E.js";
3
3
 
4
4
  //#region src/esbuild.ts
5
5
  /**
package/dist/farm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./transformer-Bp3NCHCk.js";
2
- import { IsolatedDecl } from "./src-D9EUDQkW.js";
2
+ import { IsolatedDecl } from "./src-YG5t1Y3E.js";
3
3
 
4
4
  //#region src/farm.ts
5
5
  /**
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import "./transformer-Bp3NCHCk.js";
2
- import { IsolatedDecl } from "./src-D9EUDQkW.js";
2
+ import { IsolatedDecl } from "./src-YG5t1Y3E.js";
3
3
 
4
4
  export { IsolatedDecl };
package/dist/rolldown.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./transformer-Bp3NCHCk.js";
2
- import { IsolatedDecl } from "./src-D9EUDQkW.js";
2
+ import { IsolatedDecl } from "./src-YG5t1Y3E.js";
3
3
 
4
4
  //#region src/rolldown.ts
5
5
  /**
package/dist/rollup.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./transformer-Bp3NCHCk.js";
2
- import { IsolatedDecl } from "./src-D9EUDQkW.js";
2
+ import { IsolatedDecl } from "./src-YG5t1Y3E.js";
3
3
 
4
4
  //#region src/rollup.ts
5
5
  /**
@@ -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 || "typescript",
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
@@ -1,5 +1,5 @@
1
1
  import "./transformer-Bp3NCHCk.js";
2
- import { IsolatedDecl } from "./src-D9EUDQkW.js";
2
+ import { IsolatedDecl } from "./src-YG5t1Y3E.js";
3
3
 
4
4
  //#region src/vite.ts
5
5
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unplugin-isolated-decl",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "description": "A blazing-fast tool for generating isolated declarations.",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -49,16 +49,12 @@
49
49
  },
50
50
  "peerDependencies": {
51
51
  "@swc/core": "^1.6.6",
52
- "oxc-transform": ">=0.42.0",
53
52
  "typescript": "^5.5.2"
54
53
  },
55
54
  "peerDependenciesMeta": {
56
55
  "@swc/core": {
57
56
  "optional": true
58
57
  },
59
- "oxc-transform": {
60
- "optional": true
61
- },
62
58
  "typescript": {
63
59
  "optional": true
64
60
  }
@@ -67,6 +63,7 @@
67
63
  "debug": "^4.4.0",
68
64
  "magic-string": "^0.30.17",
69
65
  "oxc-parser": "^0.53.0",
66
+ "oxc-transform": "^0.53.0",
70
67
  "unplugin": "^2.2.0",
71
68
  "unplugin-utils": "^0.2.4"
72
69
  },
@@ -84,7 +81,6 @@
84
81
  "esbuild": "^0.25.0",
85
82
  "eslint": "^9.21.0",
86
83
  "fast-glob": "^3.3.3",
87
- "oxc-transform": "^0.53.0",
88
84
  "prettier": "^3.5.3",
89
85
  "rolldown": "^1.0.0-beta.3",
90
86
  "rollup": "^4.34.9",