unplugin-oxc 0.3.5 → 0.3.7
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 +13 -3
- package/dist/farm.d.ts +15 -3
- package/dist/index-BLDXBZFF.d.ts +45 -0
- package/dist/index.d.ts +1 -2
- package/dist/rolldown.d.ts +15 -3
- package/dist/rollup.d.ts +15 -3
- package/dist/rspack.d.ts +15 -3
- package/dist/unloader.d.ts +15 -3
- package/dist/vite.d.ts +15 -3
- package/dist/webpack.d.ts +15 -3
- package/package.json +14 -14
- package/dist/index.d-CoyCeNoL.d.ts +0 -47
package/dist/esbuild.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Oxc$1 as Oxc } from "./index
|
|
1
|
+
import { Oxc$1 as Oxc } from "./index-BLDXBZFF.js";
|
|
2
2
|
|
|
3
3
|
//#region src/esbuild.d.ts
|
|
4
4
|
/**
|
|
@@ -12,7 +12,17 @@ import { Oxc$1 as Oxc } from "./index.d-CoyCeNoL.js";
|
|
|
12
12
|
* build({ plugins: [Oxc()] })
|
|
13
13
|
```
|
|
14
14
|
*/
|
|
15
|
-
declare const esbuild: typeof Oxc.esbuild;
|
|
16
15
|
|
|
17
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Esbuild plugin
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* import { build } from 'esbuild'
|
|
22
|
+
* import Oxc from 'unplugin-oxc/esbuild'
|
|
23
|
+
*
|
|
24
|
+
* build({ plugins: [Oxc()] })
|
|
25
|
+
```
|
|
26
|
+
*/
|
|
27
|
+
declare const esbuild: typeof Oxc.esbuild; //#endregion
|
|
18
28
|
export { esbuild as default, esbuild as "module.exports" };
|
package/dist/farm.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Oxc$1 as Oxc } from "./index
|
|
1
|
+
import { Oxc$1 as Oxc } from "./index-BLDXBZFF.js";
|
|
2
2
|
|
|
3
3
|
//#region src/farm.d.ts
|
|
4
4
|
/**
|
|
@@ -14,7 +14,19 @@ import { Oxc$1 as Oxc } from "./index.d-CoyCeNoL.js";
|
|
|
14
14
|
* }
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
|
-
declare const farm: typeof Oxc.farm;
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Farm plugin
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* // farm.config.js
|
|
24
|
+
* import Oxc from 'unplugin-oxc/farm'
|
|
25
|
+
*
|
|
26
|
+
* export default {
|
|
27
|
+
* plugins: [Oxc()],
|
|
28
|
+
* }
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
declare const farm: typeof Oxc.farm; //#endregion
|
|
20
32
|
export { farm as default, farm as "module.exports" };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { NapiResolveOptions } from "oxc-resolver";
|
|
2
|
+
import { TransformOptions } from "oxc-transform";
|
|
3
|
+
import { UnpluginInstance } from "unplugin";
|
|
4
|
+
import { FilterPattern } from "unplugin-utils";
|
|
5
|
+
import { MinifyOptions } from "oxc-minify";
|
|
6
|
+
|
|
7
|
+
//#region src/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
|
+
} //#endregion
|
|
41
|
+
//#region src/index.d.ts
|
|
42
|
+
declare const Oxc: UnpluginInstance<Options | undefined, false>;
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
export { Oxc as Oxc$1 };
|
package/dist/index.d.ts
CHANGED
package/dist/rolldown.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Oxc$1 as Oxc } from "./index
|
|
1
|
+
import { Oxc$1 as Oxc } from "./index-BLDXBZFF.js";
|
|
2
2
|
|
|
3
3
|
//#region src/rolldown.d.ts
|
|
4
4
|
/**
|
|
@@ -14,7 +14,19 @@ import { Oxc$1 as Oxc } from "./index.d-CoyCeNoL.js";
|
|
|
14
14
|
* }
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
|
-
declare const rolldown: typeof Oxc.rolldown;
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Rolldown plugin
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* // rolldown.config.js
|
|
24
|
+
* import Oxc from 'unplugin-oxc/rolldown'
|
|
25
|
+
*
|
|
26
|
+
* export default {
|
|
27
|
+
* plugins: [Oxc()],
|
|
28
|
+
* }
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
declare const rolldown: typeof Oxc.rolldown; //#endregion
|
|
20
32
|
export { rolldown as default, rolldown as "module.exports" };
|
package/dist/rollup.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Oxc$1 as Oxc } from "./index
|
|
1
|
+
import { Oxc$1 as Oxc } from "./index-BLDXBZFF.js";
|
|
2
2
|
|
|
3
3
|
//#region src/rollup.d.ts
|
|
4
4
|
/**
|
|
@@ -14,7 +14,19 @@ import { Oxc$1 as Oxc } from "./index.d-CoyCeNoL.js";
|
|
|
14
14
|
* }
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
|
-
declare const rollup: typeof Oxc.rollup;
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Rollup plugin
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* // rollup.config.js
|
|
24
|
+
* import Oxc from 'unplugin-oxc/rollup'
|
|
25
|
+
*
|
|
26
|
+
* export default {
|
|
27
|
+
* plugins: [Oxc()],
|
|
28
|
+
* }
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
declare const rollup: typeof Oxc.rollup; //#endregion
|
|
20
32
|
export { rollup as default, rollup as "module.exports" };
|
package/dist/rspack.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Oxc$1 as Oxc } from "./index
|
|
1
|
+
import { Oxc$1 as Oxc } from "./index-BLDXBZFF.js";
|
|
2
2
|
|
|
3
3
|
//#region src/rspack.d.ts
|
|
4
4
|
/**
|
|
@@ -14,7 +14,19 @@ import { Oxc$1 as Oxc } from "./index.d-CoyCeNoL.js";
|
|
|
14
14
|
* }
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
|
-
declare const rspack: typeof Oxc.rspack;
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Rspack plugin
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```js
|
|
23
|
+
* // rspack.config.js
|
|
24
|
+
* import Oxc from 'unplugin-oxc/rspack'
|
|
25
|
+
*
|
|
26
|
+
* default export {
|
|
27
|
+
* plugins: [Oxc()],
|
|
28
|
+
* }
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
declare const rspack: typeof Oxc.rspack; //#endregion
|
|
20
32
|
export { rspack as default, rspack as "module.exports" };
|
package/dist/unloader.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Oxc$1 as Oxc } from "./index
|
|
1
|
+
import { Oxc$1 as Oxc } from "./index-BLDXBZFF.js";
|
|
2
2
|
|
|
3
3
|
//#region src/unloader.d.ts
|
|
4
4
|
/**
|
|
@@ -14,7 +14,19 @@ import { Oxc$1 as Oxc } from "./index.d-CoyCeNoL.js";
|
|
|
14
14
|
* }
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
|
-
declare const unloader: typeof Oxc.unloader;
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Unloader plugin
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* // unloader.config.js
|
|
24
|
+
* import Oxc from 'unplugin-oxc/unloader'
|
|
25
|
+
*
|
|
26
|
+
* export default {
|
|
27
|
+
* plugins: [Oxc()],
|
|
28
|
+
* }
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
declare const unloader: typeof Oxc.unloader; //#endregion
|
|
20
32
|
export { unloader as default, unloader as "module.exports" };
|
package/dist/vite.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Oxc$1 as Oxc } from "./index
|
|
1
|
+
import { Oxc$1 as Oxc } from "./index-BLDXBZFF.js";
|
|
2
2
|
|
|
3
3
|
//#region src/vite.d.ts
|
|
4
4
|
/**
|
|
@@ -14,7 +14,19 @@ import { Oxc$1 as Oxc } from "./index.d-CoyCeNoL.js";
|
|
|
14
14
|
* })
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
|
-
declare const vite: typeof Oxc.vite;
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Vite plugin
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* // vite.config.ts
|
|
24
|
+
* import Oxc from 'unplugin-oxc/vite'
|
|
25
|
+
*
|
|
26
|
+
* export default defineConfig({
|
|
27
|
+
* plugins: [Oxc()],
|
|
28
|
+
* })
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
declare const vite: typeof Oxc.vite; //#endregion
|
|
20
32
|
export { vite as default, vite as "module.exports" };
|
package/dist/webpack.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Oxc$1 as Oxc } from "./index
|
|
1
|
+
import { Oxc$1 as Oxc } from "./index-BLDXBZFF.js";
|
|
2
2
|
|
|
3
3
|
//#region src/webpack.d.ts
|
|
4
4
|
/**
|
|
@@ -14,7 +14,19 @@ import { Oxc$1 as Oxc } from "./index.d-CoyCeNoL.js";
|
|
|
14
14
|
* }
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
|
-
declare const webpack: typeof Oxc.webpack;
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Webpack plugin
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```js
|
|
23
|
+
* // webpack.config.js
|
|
24
|
+
* import Oxc from 'unplugin-oxc/webpack'
|
|
25
|
+
*
|
|
26
|
+
* default export {
|
|
27
|
+
* plugins: [Oxc()],
|
|
28
|
+
* }
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
declare const webpack: typeof Oxc.webpack; //#endregion
|
|
20
32
|
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.
|
|
3
|
+
"version": "0.3.7",
|
|
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.
|
|
66
|
+
"oxc-minify": "^0.68.1",
|
|
67
|
+
"oxc-resolver": "^8.0.0",
|
|
68
|
+
"oxc-transform": "^0.68.1",
|
|
69
69
|
"unplugin": "^2.3.2",
|
|
70
70
|
"unplugin-utils": "^0.2.4"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@sxzz/eslint-config": "^
|
|
73
|
+
"@sxzz/eslint-config": "^7.0.0",
|
|
74
74
|
"@sxzz/prettier-config": "^2.2.1",
|
|
75
|
-
"@sxzz/test-utils": "^0.5.
|
|
76
|
-
"@types/node": "^22.
|
|
75
|
+
"@sxzz/test-utils": "^0.5.6",
|
|
76
|
+
"@types/node": "^22.15.17",
|
|
77
77
|
"bumpp": "^10.1.0",
|
|
78
|
-
"eslint": "^9.
|
|
78
|
+
"eslint": "^9.26.0",
|
|
79
79
|
"prettier": "^3.5.3",
|
|
80
|
-
"rollup": "^4.40.
|
|
80
|
+
"rollup": "^4.40.2",
|
|
81
81
|
"tinyexec": "^1.0.1",
|
|
82
|
-
"tsdown": "^0.
|
|
83
|
-
"tsx": "^4.19.
|
|
82
|
+
"tsdown": "^0.11.1",
|
|
83
|
+
"tsx": "^4.19.4",
|
|
84
84
|
"typescript": "^5.8.3",
|
|
85
|
-
"unloader": "^0.4.
|
|
86
|
-
"vite": "^6.3.
|
|
87
|
-
"vitest": "^3.1.
|
|
85
|
+
"unloader": "^0.4.4",
|
|
86
|
+
"vite": "^6.3.5",
|
|
87
|
+
"vitest": "^3.1.3"
|
|
88
88
|
},
|
|
89
89
|
"engines": {
|
|
90
90
|
"node": ">=18.12.0"
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { NapiResolveOptions } from "oxc-resolver";
|
|
2
|
-
import { TransformOptions } from "oxc-transform";
|
|
3
|
-
import { UnpluginInstance } from "unplugin";
|
|
4
|
-
import { FilterPattern } from "unplugin-utils";
|
|
5
|
-
import { MinifyOptions } from "oxc-minify";
|
|
6
|
-
|
|
7
|
-
//#region src/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 src/index.d.ts
|
|
44
|
-
declare const Oxc: UnpluginInstance<Options | undefined, false>;
|
|
45
|
-
|
|
46
|
-
//#endregion
|
|
47
|
-
export { Oxc as Oxc$1 };
|