unplugin-oxc 0.3.2 → 0.3.3

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/api.d.ts CHANGED
@@ -1,2 +1 @@
1
-
2
- export { };
1
+ export {}
package/dist/esbuild.d.ts CHANGED
@@ -1,16 +1,6 @@
1
- import { Oxc } from './index.js';
2
- import 'unplugin';
3
- import 'oxc-minify';
4
- import 'oxc-resolver';
5
- import 'oxc-transform';
6
- import 'unplugin-utils';
7
-
8
- /**
9
- * This entry file is for esbuild plugin. Requires esbuild >= 0.15
10
- *
11
- * @module
12
- */
1
+ import { Oxc } from "./index.d-BAysxhHZ.js";
13
2
 
3
+ //#region dist/.tsdown-types-es/esbuild.d.ts
14
4
  /**
15
5
  * Esbuild plugin
16
6
  *
@@ -24,4 +14,5 @@ import 'unplugin-utils';
24
14
  */
25
15
  declare const esbuild: typeof Oxc.esbuild;
26
16
 
27
- export { esbuild as "\"module.exports\"", esbuild as default };
17
+ //#endregion
18
+ export { esbuild as default, esbuild as "module.exports" };
package/dist/farm.d.ts CHANGED
@@ -1,16 +1,6 @@
1
- import { Oxc } from './index.js';
2
- import 'unplugin';
3
- import 'oxc-minify';
4
- import 'oxc-resolver';
5
- import 'oxc-transform';
6
- import 'unplugin-utils';
7
-
8
- /**
9
- * This entry file is for Farm plugin.
10
- *
11
- * @module
12
- */
1
+ import { Oxc } from "./index.d-BAysxhHZ.js";
13
2
 
3
+ //#region dist/.tsdown-types-es/farm.d.ts
14
4
  /**
15
5
  * Farm plugin
16
6
  *
@@ -26,4 +16,5 @@ import 'unplugin-utils';
26
16
  */
27
17
  declare const farm: typeof Oxc.farm;
28
18
 
29
- export { farm as "\"module.exports\"", farm as default };
19
+ //#endregion
20
+ export { farm as default, farm as "module.exports" };
@@ -0,0 +1,47 @@
1
+ import { UnpluginInstance } from "unplugin";
2
+ import { MinifyOptions } from "oxc-minify";
3
+ import { NapiResolveOptions } from "oxc-resolver";
4
+ import { TransformOptions } from "oxc-transform";
5
+ import { FilterPattern } from "unplugin-utils";
6
+
7
+ //#region dist/.tsdown-types-es/core/options.d.ts
8
+ interface Options {
9
+ /**
10
+ * @default [/\.[cm]?[jt]sx?$/],
11
+ */
12
+ include?: FilterPattern;
13
+ /**
14
+ * @default [/node_modules/],
15
+ */
16
+ exclude?: FilterPattern;
17
+ enforce?: "pre" | "post" | undefined;
18
+ /**
19
+ * Transform options passed to `oxc-transform`
20
+ */
21
+ transform?: Omit<TransformOptions, "sourcemap"> | false;
22
+ /**
23
+ * Resolve options passed to `oxc-resolver`
24
+ */
25
+ resolve?: NapiResolveOptions | false;
26
+ /**
27
+ * The plugin will skip resolving node_modules by default.
28
+ * Set this to `true` to resolve node_modules.
29
+ * @default false
30
+ */
31
+ resolveNodeModules?: boolean;
32
+ /**
33
+ * Minify options passed to `oxc-minify`
34
+ */
35
+ minify?: Omit<MinifyOptions, "sourcemap"> | boolean;
36
+ /**
37
+ * Default: `true` on unloader, `false` on others.
38
+ */
39
+ sourcemap?: boolean;
40
+ }
41
+
42
+ //#endregion
43
+ //#region dist/.tsdown-types-es/index.d.ts
44
+ declare const Oxc: UnpluginInstance<Options | undefined, false>;
45
+
46
+ //#endregion
47
+ export { Oxc };
package/dist/index.d.ts CHANGED
@@ -1,52 +1,3 @@
1
- import type { UnpluginInstance } from 'unplugin';
2
- import type { MinifyOptions } from 'oxc-minify';
3
- import type { NapiResolveOptions } from 'oxc-resolver';
4
- import type { TransformOptions } from 'oxc-transform';
5
- import type { FilterPattern } from 'unplugin-utils';
1
+ import { Oxc } from "./index.d-BAysxhHZ.js";
6
2
 
7
-
8
-
9
-
10
-
11
-
12
-
13
- interface Options {
14
- /**
15
- * @default [/\.[cm]?[jt]sx?$/],
16
- */
17
- include?: FilterPattern;
18
- /**
19
- * @default [/node_modules/],
20
- */
21
- exclude?: FilterPattern;
22
- enforce?: "pre" | "post" | undefined;
23
- /**
24
- * Transform options passed to `oxc-transform`
25
- */
26
- transform?: Omit<TransformOptions, "sourcemap"> | false;
27
- /**
28
- * Resolve options passed to `oxc-resolver`
29
- */
30
- resolve?: NapiResolveOptions | false;
31
- /**
32
- * The plugin will skip resolving node_modules by default.
33
- * Set this to `true` to resolve node_modules.
34
- * @default false
35
- */
36
- resolveNodeModules?: boolean;
37
- /**
38
- * Minify options passed to `oxc-minify`
39
- */
40
- minify?: Omit<MinifyOptions, "sourcemap"> | boolean;
41
- /**
42
- * Default: `true` on unloader, `false` on others.
43
- */
44
- sourcemap?: boolean;
45
- }
46
-
47
-
48
-
49
-
50
- declare const Oxc: UnpluginInstance<Options | undefined, false>;
51
-
52
- export { Oxc };
3
+ export { Oxc };
@@ -1,16 +1,6 @@
1
- import { Oxc } from './index.js';
2
- import 'unplugin';
3
- import 'oxc-minify';
4
- import 'oxc-resolver';
5
- import 'oxc-transform';
6
- import 'unplugin-utils';
7
-
8
- /**
9
- * This entry file is for Rolldown plugin.
10
- *
11
- * @module
12
- */
1
+ import { Oxc } from "./index.d-BAysxhHZ.js";
13
2
 
3
+ //#region dist/.tsdown-types-es/rolldown.d.ts
14
4
  /**
15
5
  * Rolldown plugin
16
6
  *
@@ -26,4 +16,5 @@ import 'unplugin-utils';
26
16
  */
27
17
  declare const rolldown: typeof Oxc.rolldown;
28
18
 
29
- export { rolldown as "\"module.exports\"", rolldown as default };
19
+ //#endregion
20
+ export { rolldown as default, rolldown as "module.exports" };
package/dist/rollup.d.ts CHANGED
@@ -1,16 +1,6 @@
1
- import { Oxc } from './index.js';
2
- import 'unplugin';
3
- import 'oxc-minify';
4
- import 'oxc-resolver';
5
- import 'oxc-transform';
6
- import 'unplugin-utils';
7
-
8
- /**
9
- * This entry file is for Rollup plugin.
10
- *
11
- * @module
12
- */
1
+ import { Oxc } from "./index.d-BAysxhHZ.js";
13
2
 
3
+ //#region dist/.tsdown-types-es/rollup.d.ts
14
4
  /**
15
5
  * Rollup plugin
16
6
  *
@@ -26,4 +16,5 @@ import 'unplugin-utils';
26
16
  */
27
17
  declare const rollup: typeof Oxc.rollup;
28
18
 
29
- export { rollup as "\"module.exports\"", rollup as default };
19
+ //#endregion
20
+ export { rollup as default, rollup as "module.exports" };
package/dist/rspack.d.ts CHANGED
@@ -1,16 +1,6 @@
1
- import { Oxc } from './index.js';
2
- import 'unplugin';
3
- import 'oxc-minify';
4
- import 'oxc-resolver';
5
- import 'oxc-transform';
6
- import 'unplugin-utils';
7
-
8
- /**
9
- * This entry file is for Rspack plugin.
10
- *
11
- * @module
12
- */
1
+ import { Oxc } from "./index.d-BAysxhHZ.js";
13
2
 
3
+ //#region dist/.tsdown-types-es/rspack.d.ts
14
4
  /**
15
5
  * Rspack plugin
16
6
  *
@@ -26,4 +16,5 @@ import 'unplugin-utils';
26
16
  */
27
17
  declare const rspack: typeof Oxc.rspack;
28
18
 
29
- export { rspack as "\"module.exports\"", rspack as default };
19
+ //#endregion
20
+ export { rspack as default, rspack as "module.exports" };
@@ -1,16 +1,6 @@
1
- import { Oxc } from './index.js';
2
- import 'unplugin';
3
- import 'oxc-minify';
4
- import 'oxc-resolver';
5
- import 'oxc-transform';
6
- import 'unplugin-utils';
7
-
8
- /**
9
- * This entry file is for Unloader plugin.
10
- *
11
- * @module
12
- */
1
+ import { Oxc } from "./index.d-BAysxhHZ.js";
13
2
 
3
+ //#region dist/.tsdown-types-es/unloader.d.ts
14
4
  /**
15
5
  * Unloader plugin
16
6
  *
@@ -26,4 +16,5 @@ import 'unplugin-utils';
26
16
  */
27
17
  declare const unloader: typeof Oxc.unloader;
28
18
 
29
- export { unloader as "\"module.exports\"", unloader as default };
19
+ //#endregion
20
+ export { unloader as default, unloader as "module.exports" };
package/dist/vite.d.ts CHANGED
@@ -1,16 +1,6 @@
1
- import { Oxc } from './index.js';
2
- import 'unplugin';
3
- import 'oxc-minify';
4
- import 'oxc-resolver';
5
- import 'oxc-transform';
6
- import 'unplugin-utils';
7
-
8
- /**
9
- * This entry file is for Vite plugin.
10
- *
11
- * @module
12
- */
1
+ import { Oxc } from "./index.d-BAysxhHZ.js";
13
2
 
3
+ //#region dist/.tsdown-types-es/vite.d.ts
14
4
  /**
15
5
  * Vite plugin
16
6
  *
@@ -26,4 +16,5 @@ import 'unplugin-utils';
26
16
  */
27
17
  declare const vite: typeof Oxc.vite;
28
18
 
29
- export { vite as "\"module.exports\"", vite as default };
19
+ //#endregion
20
+ export { vite as default, vite as "module.exports" };
package/dist/webpack.d.ts CHANGED
@@ -1,16 +1,6 @@
1
- import { Oxc } from './index.js';
2
- import 'unplugin';
3
- import 'oxc-minify';
4
- import 'oxc-resolver';
5
- import 'oxc-transform';
6
- import 'unplugin-utils';
7
-
8
- /**
9
- * This entry file is for webpack plugin.
10
- *
11
- * @module
12
- */
1
+ import { Oxc } from "./index.d-BAysxhHZ.js";
13
2
 
3
+ //#region dist/.tsdown-types-es/webpack.d.ts
14
4
  /**
15
5
  * Webpack plugin
16
6
  *
@@ -26,4 +16,5 @@ import 'unplugin-utils';
26
16
  */
27
17
  declare const webpack: typeof Oxc.webpack;
28
18
 
29
- export { webpack as "\"module.exports\"", webpack as default };
19
+ //#endregion
20
+ export { webpack as default, webpack as "module.exports" };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unplugin-oxc",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "Oxc integration for unplugin.",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -63,28 +63,28 @@
63
63
  }
64
64
  },
65
65
  "dependencies": {
66
- "oxc-minify": "^0.61.1",
67
- "oxc-resolver": "^5.0.1",
68
- "oxc-transform": "^0.61.1",
69
- "unplugin": "^2.2.1",
66
+ "oxc-minify": "^0.62.0",
67
+ "oxc-resolver": "^5.1.0",
68
+ "oxc-transform": "^0.62.0",
69
+ "unplugin": "^2.2.2",
70
70
  "unplugin-utils": "^0.2.4"
71
71
  },
72
72
  "devDependencies": {
73
- "@sxzz/eslint-config": "^6.1.0",
73
+ "@sxzz/eslint-config": "^6.1.1",
74
74
  "@sxzz/prettier-config": "^2.2.1",
75
- "@sxzz/test-utils": "^0.5.2",
76
- "@types/node": "^22.13.10",
75
+ "@sxzz/test-utils": "^0.5.4",
76
+ "@types/node": "^22.14.0",
77
77
  "bumpp": "^10.1.0",
78
- "eslint": "^9.22.0",
78
+ "eslint": "^9.23.0",
79
79
  "prettier": "^3.5.3",
80
- "rollup": "^4.36.0",
81
- "tinyexec": "^1.0.0",
82
- "tsdown": "^0.6.9",
80
+ "rollup": "^4.39.0",
81
+ "tinyexec": "^1.0.1",
82
+ "tsdown": "^0.7.2",
83
83
  "tsx": "^4.19.3",
84
84
  "typescript": "^5.8.2",
85
85
  "unloader": "^0.4.3",
86
- "vite": "^6.2.2",
87
- "vitest": "^3.0.9"
86
+ "vite": "^6.2.5",
87
+ "vitest": "^3.1.1"
88
88
  },
89
89
  "engines": {
90
90
  "node": ">=18.12.0"