unplugin-oxc 0.3.3 → 0.3.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/api.d.ts +1 -1
- package/dist/esbuild.d.ts +13 -2
- package/dist/farm.d.ts +15 -2
- package/dist/{index.d-BAysxhHZ.d.ts → index.d-CoyCeNoL.d.ts} +5 -5
- package/dist/index.d.ts +1 -1
- package/dist/rolldown.d.ts +15 -2
- package/dist/rollup.d.ts +15 -2
- package/dist/rspack.d.ts +15 -2
- package/dist/unloader.d.ts +15 -2
- package/dist/vite.d.ts +15 -2
- package/dist/webpack.d.ts +15 -2
- package/package.json +12 -12
package/dist/api.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {}
|
|
1
|
+
export { };
|
package/dist/esbuild.d.ts
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
import { Oxc } from "./index.d-
|
|
1
|
+
import { Oxc$1 as Oxc } from "./index.d-CoyCeNoL.js";
|
|
2
2
|
|
|
3
|
-
//#region
|
|
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
|
+
*/
|
|
4
15
|
/**
|
|
5
16
|
* Esbuild plugin
|
|
6
17
|
*
|
package/dist/farm.d.ts
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
|
-
import { Oxc } from "./index.d-
|
|
1
|
+
import { Oxc$1 as Oxc } from "./index.d-CoyCeNoL.js";
|
|
2
2
|
|
|
3
|
-
//#region
|
|
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
|
+
*/
|
|
4
17
|
/**
|
|
5
18
|
* Farm plugin
|
|
6
19
|
*
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { UnpluginInstance } from "unplugin";
|
|
2
|
-
import { MinifyOptions } from "oxc-minify";
|
|
3
1
|
import { NapiResolveOptions } from "oxc-resolver";
|
|
4
2
|
import { TransformOptions } from "oxc-transform";
|
|
3
|
+
import { UnpluginInstance } from "unplugin";
|
|
5
4
|
import { FilterPattern } from "unplugin-utils";
|
|
5
|
+
import { MinifyOptions } from "oxc-minify";
|
|
6
6
|
|
|
7
|
-
//#region
|
|
7
|
+
//#region src/core/options.d.ts
|
|
8
8
|
interface Options {
|
|
9
9
|
/**
|
|
10
10
|
* @default [/\.[cm]?[jt]sx?$/],
|
|
@@ -40,8 +40,8 @@ interface Options {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
//#endregion
|
|
43
|
-
//#region
|
|
43
|
+
//#region src/index.d.ts
|
|
44
44
|
declare const Oxc: UnpluginInstance<Options | undefined, false>;
|
|
45
45
|
|
|
46
46
|
//#endregion
|
|
47
|
-
export { Oxc };
|
|
47
|
+
export { Oxc as Oxc$1 };
|
package/dist/index.d.ts
CHANGED
package/dist/rolldown.d.ts
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
|
-
import { Oxc } from "./index.d-
|
|
1
|
+
import { Oxc$1 as Oxc } from "./index.d-CoyCeNoL.js";
|
|
2
2
|
|
|
3
|
-
//#region
|
|
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
|
+
*/
|
|
4
17
|
/**
|
|
5
18
|
* Rolldown plugin
|
|
6
19
|
*
|
package/dist/rollup.d.ts
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
|
-
import { Oxc } from "./index.d-
|
|
1
|
+
import { Oxc$1 as Oxc } from "./index.d-CoyCeNoL.js";
|
|
2
2
|
|
|
3
|
-
//#region
|
|
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
|
+
*/
|
|
4
17
|
/**
|
|
5
18
|
* Rollup plugin
|
|
6
19
|
*
|
package/dist/rspack.d.ts
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
|
-
import { Oxc } from "./index.d-
|
|
1
|
+
import { Oxc$1 as Oxc } from "./index.d-CoyCeNoL.js";
|
|
2
2
|
|
|
3
|
-
//#region
|
|
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
|
+
*/
|
|
4
17
|
/**
|
|
5
18
|
* Rspack plugin
|
|
6
19
|
*
|
package/dist/unloader.d.ts
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
|
-
import { Oxc } from "./index.d-
|
|
1
|
+
import { Oxc$1 as Oxc } from "./index.d-CoyCeNoL.js";
|
|
2
2
|
|
|
3
|
-
//#region
|
|
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
|
+
*/
|
|
4
17
|
/**
|
|
5
18
|
* Unloader plugin
|
|
6
19
|
*
|
package/dist/vite.d.ts
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
|
-
import { Oxc } from "./index.d-
|
|
1
|
+
import { Oxc$1 as Oxc } from "./index.d-CoyCeNoL.js";
|
|
2
2
|
|
|
3
|
-
//#region
|
|
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
|
+
*/
|
|
4
17
|
/**
|
|
5
18
|
* Vite plugin
|
|
6
19
|
*
|
package/dist/webpack.d.ts
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
|
-
import { Oxc } from "./index.d-
|
|
1
|
+
import { Oxc$1 as Oxc } from "./index.d-CoyCeNoL.js";
|
|
2
2
|
|
|
3
|
-
//#region
|
|
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
|
+
*/
|
|
4
17
|
/**
|
|
5
18
|
* Webpack plugin
|
|
6
19
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unplugin-oxc",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "Oxc integration for unplugin.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -63,27 +63,27 @@
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"oxc-minify": "^0.
|
|
67
|
-
"oxc-resolver": "^5.
|
|
68
|
-
"oxc-transform": "^0.
|
|
69
|
-
"unplugin": "^2.
|
|
66
|
+
"oxc-minify": "^0.64.0",
|
|
67
|
+
"oxc-resolver": "^5.3.0",
|
|
68
|
+
"oxc-transform": "^0.64.0",
|
|
69
|
+
"unplugin": "^2.3.2",
|
|
70
70
|
"unplugin-utils": "^0.2.4"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@sxzz/eslint-config": "^6.1.1",
|
|
74
74
|
"@sxzz/prettier-config": "^2.2.1",
|
|
75
|
-
"@sxzz/test-utils": "^0.5.
|
|
76
|
-
"@types/node": "^22.14.
|
|
75
|
+
"@sxzz/test-utils": "^0.5.5",
|
|
76
|
+
"@types/node": "^22.14.1",
|
|
77
77
|
"bumpp": "^10.1.0",
|
|
78
|
-
"eslint": "^9.
|
|
78
|
+
"eslint": "^9.25.0",
|
|
79
79
|
"prettier": "^3.5.3",
|
|
80
|
-
"rollup": "^4.
|
|
80
|
+
"rollup": "^4.40.0",
|
|
81
81
|
"tinyexec": "^1.0.1",
|
|
82
|
-
"tsdown": "^0.
|
|
82
|
+
"tsdown": "^0.9.0",
|
|
83
83
|
"tsx": "^4.19.3",
|
|
84
|
-
"typescript": "^5.8.
|
|
84
|
+
"typescript": "^5.8.3",
|
|
85
85
|
"unloader": "^0.4.3",
|
|
86
|
-
"vite": "^6.2
|
|
86
|
+
"vite": "^6.3.2",
|
|
87
87
|
"vitest": "^3.1.1"
|
|
88
88
|
},
|
|
89
89
|
"engines": {
|