unplugin-oxc 0.4.3 → 0.4.5
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/esbuild.d.ts +3 -13
- package/dist/farm.d.ts +3 -15
- package/dist/{index-BLDXBZFF.d.ts → index-DCbJ-kOf.d.ts} +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/rolldown.d.ts +3 -15
- package/dist/rollup.d.ts +3 -15
- package/dist/rspack.d.ts +3 -15
- package/dist/unloader.d.ts +3 -15
- package/dist/vite.d.ts +3 -15
- package/dist/webpack.d.ts +3 -15
- package/package.json +11 -11
package/dist/esbuild.d.ts
CHANGED
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
import { Oxc
|
|
1
|
+
import { Oxc } from "./index-DCbJ-kOf.js";
|
|
2
2
|
|
|
3
3
|
//#region src/esbuild.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Esbuild plugin
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```ts
|
|
9
|
-
* import { build } from 'esbuild'
|
|
10
|
-
* import Oxc from 'unplugin-oxc/esbuild'
|
|
11
|
-
*
|
|
12
|
-
* build({ plugins: [Oxc()] })
|
|
13
|
-
```
|
|
14
|
-
*/
|
|
15
4
|
|
|
16
5
|
/**
|
|
17
6
|
* Esbuild plugin
|
|
@@ -24,5 +13,6 @@ import { Oxc$1 as Oxc } from "./index-BLDXBZFF.js";
|
|
|
24
13
|
* build({ plugins: [Oxc()] })
|
|
25
14
|
```
|
|
26
15
|
*/
|
|
27
|
-
declare const esbuild: typeof Oxc.esbuild;
|
|
16
|
+
declare const esbuild: typeof Oxc.esbuild;
|
|
17
|
+
//#endregion
|
|
28
18
|
export { esbuild as default, esbuild as "module.exports" };
|
package/dist/farm.d.ts
CHANGED
|
@@ -1,19 +1,6 @@
|
|
|
1
|
-
import { Oxc
|
|
1
|
+
import { Oxc } from "./index-DCbJ-kOf.js";
|
|
2
2
|
|
|
3
3
|
//#region src/farm.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Farm plugin
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```ts
|
|
9
|
-
* // farm.config.js
|
|
10
|
-
* import Oxc from 'unplugin-oxc/farm'
|
|
11
|
-
*
|
|
12
|
-
* export default {
|
|
13
|
-
* plugins: [Oxc()],
|
|
14
|
-
* }
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
4
|
|
|
18
5
|
/**
|
|
19
6
|
* Farm plugin
|
|
@@ -28,5 +15,6 @@ import { Oxc$1 as Oxc } from "./index-BLDXBZFF.js";
|
|
|
28
15
|
* }
|
|
29
16
|
* ```
|
|
30
17
|
*/
|
|
31
|
-
declare const farm: typeof Oxc.farm;
|
|
18
|
+
declare const farm: typeof Oxc.farm;
|
|
19
|
+
//#endregion
|
|
32
20
|
export { farm as default, farm as "module.exports" };
|
|
@@ -37,9 +37,9 @@ interface Options {
|
|
|
37
37
|
* Default: `true` on unloader, `false` on others.
|
|
38
38
|
*/
|
|
39
39
|
sourcemap?: boolean;
|
|
40
|
-
}
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
41
42
|
//#region src/index.d.ts
|
|
42
43
|
declare const Oxc: UnpluginInstance<Options | undefined, false>;
|
|
43
|
-
|
|
44
44
|
//#endregion
|
|
45
|
-
export { Oxc
|
|
45
|
+
export { Oxc };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Oxc
|
|
1
|
+
import { Oxc } from "./index-DCbJ-kOf.js";
|
|
2
2
|
export { Oxc };
|
package/dist/rolldown.d.ts
CHANGED
|
@@ -1,19 +1,6 @@
|
|
|
1
|
-
import { Oxc
|
|
1
|
+
import { Oxc } from "./index-DCbJ-kOf.js";
|
|
2
2
|
|
|
3
3
|
//#region src/rolldown.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Rolldown plugin
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```ts
|
|
9
|
-
* // rolldown.config.js
|
|
10
|
-
* import Oxc from 'unplugin-oxc/rolldown'
|
|
11
|
-
*
|
|
12
|
-
* export default {
|
|
13
|
-
* plugins: [Oxc()],
|
|
14
|
-
* }
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
4
|
|
|
18
5
|
/**
|
|
19
6
|
* Rolldown plugin
|
|
@@ -28,5 +15,6 @@ import { Oxc$1 as Oxc } from "./index-BLDXBZFF.js";
|
|
|
28
15
|
* }
|
|
29
16
|
* ```
|
|
30
17
|
*/
|
|
31
|
-
declare const rolldown: typeof Oxc.rolldown;
|
|
18
|
+
declare const rolldown: typeof Oxc.rolldown;
|
|
19
|
+
//#endregion
|
|
32
20
|
export { rolldown as default, rolldown as "module.exports" };
|
package/dist/rollup.d.ts
CHANGED
|
@@ -1,19 +1,6 @@
|
|
|
1
|
-
import { Oxc
|
|
1
|
+
import { Oxc } from "./index-DCbJ-kOf.js";
|
|
2
2
|
|
|
3
3
|
//#region src/rollup.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Rollup plugin
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```ts
|
|
9
|
-
* // rollup.config.js
|
|
10
|
-
* import Oxc from 'unplugin-oxc/rollup'
|
|
11
|
-
*
|
|
12
|
-
* export default {
|
|
13
|
-
* plugins: [Oxc()],
|
|
14
|
-
* }
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
4
|
|
|
18
5
|
/**
|
|
19
6
|
* Rollup plugin
|
|
@@ -28,5 +15,6 @@ import { Oxc$1 as Oxc } from "./index-BLDXBZFF.js";
|
|
|
28
15
|
* }
|
|
29
16
|
* ```
|
|
30
17
|
*/
|
|
31
|
-
declare const rollup: typeof Oxc.rollup;
|
|
18
|
+
declare const rollup: typeof Oxc.rollup;
|
|
19
|
+
//#endregion
|
|
32
20
|
export { rollup as default, rollup as "module.exports" };
|
package/dist/rspack.d.ts
CHANGED
|
@@ -1,19 +1,6 @@
|
|
|
1
|
-
import { Oxc
|
|
1
|
+
import { Oxc } from "./index-DCbJ-kOf.js";
|
|
2
2
|
|
|
3
3
|
//#region src/rspack.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Rspack plugin
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```js
|
|
9
|
-
* // rspack.config.js
|
|
10
|
-
* import Oxc from 'unplugin-oxc/rspack'
|
|
11
|
-
*
|
|
12
|
-
* default export {
|
|
13
|
-
* plugins: [Oxc()],
|
|
14
|
-
* }
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
4
|
|
|
18
5
|
/**
|
|
19
6
|
* Rspack plugin
|
|
@@ -28,5 +15,6 @@ import { Oxc$1 as Oxc } from "./index-BLDXBZFF.js";
|
|
|
28
15
|
* }
|
|
29
16
|
* ```
|
|
30
17
|
*/
|
|
31
|
-
declare const rspack: typeof Oxc.rspack;
|
|
18
|
+
declare const rspack: typeof Oxc.rspack;
|
|
19
|
+
//#endregion
|
|
32
20
|
export { rspack as default, rspack as "module.exports" };
|
package/dist/unloader.d.ts
CHANGED
|
@@ -1,19 +1,6 @@
|
|
|
1
|
-
import { Oxc
|
|
1
|
+
import { Oxc } from "./index-DCbJ-kOf.js";
|
|
2
2
|
|
|
3
3
|
//#region src/unloader.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Unloader plugin
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```ts
|
|
9
|
-
* // unloader.config.js
|
|
10
|
-
* import Oxc from 'unplugin-oxc/unloader'
|
|
11
|
-
*
|
|
12
|
-
* export default {
|
|
13
|
-
* plugins: [Oxc()],
|
|
14
|
-
* }
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
4
|
|
|
18
5
|
/**
|
|
19
6
|
* Unloader plugin
|
|
@@ -28,5 +15,6 @@ import { Oxc$1 as Oxc } from "./index-BLDXBZFF.js";
|
|
|
28
15
|
* }
|
|
29
16
|
* ```
|
|
30
17
|
*/
|
|
31
|
-
declare const unloader: typeof Oxc.unloader;
|
|
18
|
+
declare const unloader: typeof Oxc.unloader;
|
|
19
|
+
//#endregion
|
|
32
20
|
export { unloader as default, unloader as "module.exports" };
|
package/dist/vite.d.ts
CHANGED
|
@@ -1,19 +1,6 @@
|
|
|
1
|
-
import { Oxc
|
|
1
|
+
import { Oxc } from "./index-DCbJ-kOf.js";
|
|
2
2
|
|
|
3
3
|
//#region src/vite.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Vite plugin
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```ts
|
|
9
|
-
* // vite.config.ts
|
|
10
|
-
* import Oxc from 'unplugin-oxc/vite'
|
|
11
|
-
*
|
|
12
|
-
* export default defineConfig({
|
|
13
|
-
* plugins: [Oxc()],
|
|
14
|
-
* })
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
4
|
|
|
18
5
|
/**
|
|
19
6
|
* Vite plugin
|
|
@@ -28,5 +15,6 @@ import { Oxc$1 as Oxc } from "./index-BLDXBZFF.js";
|
|
|
28
15
|
* })
|
|
29
16
|
* ```
|
|
30
17
|
*/
|
|
31
|
-
declare const vite: typeof Oxc.vite;
|
|
18
|
+
declare const vite: typeof Oxc.vite;
|
|
19
|
+
//#endregion
|
|
32
20
|
export { vite as default, vite as "module.exports" };
|
package/dist/webpack.d.ts
CHANGED
|
@@ -1,19 +1,6 @@
|
|
|
1
|
-
import { Oxc
|
|
1
|
+
import { Oxc } from "./index-DCbJ-kOf.js";
|
|
2
2
|
|
|
3
3
|
//#region src/webpack.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Webpack plugin
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```js
|
|
9
|
-
* // webpack.config.js
|
|
10
|
-
* import Oxc from 'unplugin-oxc/webpack'
|
|
11
|
-
*
|
|
12
|
-
* default export {
|
|
13
|
-
* plugins: [Oxc()],
|
|
14
|
-
* }
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
4
|
|
|
18
5
|
/**
|
|
19
6
|
* Webpack plugin
|
|
@@ -28,5 +15,6 @@ import { Oxc$1 as Oxc } from "./index-BLDXBZFF.js";
|
|
|
28
15
|
* }
|
|
29
16
|
* ```
|
|
30
17
|
*/
|
|
31
|
-
declare const webpack: typeof Oxc.webpack;
|
|
18
|
+
declare const webpack: typeof Oxc.webpack;
|
|
19
|
+
//#endregion
|
|
32
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.4.
|
|
3
|
+
"version": "0.4.5",
|
|
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.
|
|
67
|
-
"oxc-resolver": "^
|
|
68
|
-
"oxc-transform": "^0.
|
|
69
|
-
"unplugin": "^2.3.
|
|
66
|
+
"oxc-minify": "^0.72.2",
|
|
67
|
+
"oxc-resolver": "^11.0.0",
|
|
68
|
+
"oxc-transform": "^0.72.2",
|
|
69
|
+
"unplugin": "^2.3.5",
|
|
70
70
|
"unplugin-utils": "^0.2.4"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@sxzz/eslint-config": "^7.0.1",
|
|
74
74
|
"@sxzz/prettier-config": "^2.2.1",
|
|
75
75
|
"@sxzz/test-utils": "^0.5.6",
|
|
76
|
-
"@types/node": "^22.15.
|
|
77
|
-
"bumpp": "^10.1.
|
|
78
|
-
"eslint": "^9.
|
|
76
|
+
"@types/node": "^22.15.29",
|
|
77
|
+
"bumpp": "^10.1.1",
|
|
78
|
+
"eslint": "^9.28.0",
|
|
79
79
|
"prettier": "^3.5.3",
|
|
80
|
-
"rollup": "^4.
|
|
80
|
+
"rollup": "^4.41.1",
|
|
81
81
|
"tinyexec": "^1.0.1",
|
|
82
|
-
"tsdown": "^0.
|
|
82
|
+
"tsdown": "^0.12.5",
|
|
83
83
|
"tsx": "^4.19.4",
|
|
84
84
|
"typescript": "^5.8.3",
|
|
85
85
|
"unloader": "^0.4.5",
|
|
86
86
|
"vite": "^6.3.5",
|
|
87
|
-
"vitest": "^3.1.
|
|
87
|
+
"vitest": "^3.1.4"
|
|
88
88
|
},
|
|
89
89
|
"engines": {
|
|
90
90
|
"node": ">=20.18.0"
|