unplugin-oxc 0.3.2 → 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 -2
- package/dist/esbuild.d.ts +12 -10
- package/dist/farm.d.ts +14 -10
- package/dist/index.d-CoyCeNoL.d.ts +47 -0
- package/dist/index.d.ts +2 -51
- package/dist/rolldown.d.ts +14 -10
- package/dist/rollup.d.ts +14 -10
- package/dist/rspack.d.ts +14 -10
- package/dist/unloader.d.ts +14 -10
- package/dist/vite.d.ts +14 -10
- package/dist/webpack.d.ts +14 -10
- package/package.json +15 -15
package/dist/api.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { };
|
|
1
|
+
export { };
|
package/dist/esbuild.d.ts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { Oxc } from
|
|
2
|
-
import 'unplugin';
|
|
3
|
-
import 'oxc-minify';
|
|
4
|
-
import 'oxc-resolver';
|
|
5
|
-
import 'oxc-transform';
|
|
6
|
-
import 'unplugin-utils';
|
|
1
|
+
import { Oxc$1 as Oxc } from "./index.d-CoyCeNoL.js";
|
|
7
2
|
|
|
3
|
+
//#region src/esbuild.d.ts
|
|
8
4
|
/**
|
|
9
|
-
*
|
|
5
|
+
* Esbuild plugin
|
|
10
6
|
*
|
|
11
|
-
* @
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* import { build } from 'esbuild'
|
|
10
|
+
* import Oxc from 'unplugin-oxc/esbuild'
|
|
11
|
+
*
|
|
12
|
+
* build({ plugins: [Oxc()] })
|
|
13
|
+
```
|
|
12
14
|
*/
|
|
13
|
-
|
|
14
15
|
/**
|
|
15
16
|
* Esbuild plugin
|
|
16
17
|
*
|
|
@@ -24,4 +25,5 @@ import 'unplugin-utils';
|
|
|
24
25
|
*/
|
|
25
26
|
declare const esbuild: typeof Oxc.esbuild;
|
|
26
27
|
|
|
27
|
-
|
|
28
|
+
//#endregion
|
|
29
|
+
export { esbuild as default, esbuild as "module.exports" };
|
package/dist/farm.d.ts
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import { Oxc } from
|
|
2
|
-
import 'unplugin';
|
|
3
|
-
import 'oxc-minify';
|
|
4
|
-
import 'oxc-resolver';
|
|
5
|
-
import 'oxc-transform';
|
|
6
|
-
import 'unplugin-utils';
|
|
1
|
+
import { Oxc$1 as Oxc } from "./index.d-CoyCeNoL.js";
|
|
7
2
|
|
|
3
|
+
//#region src/farm.d.ts
|
|
8
4
|
/**
|
|
9
|
-
*
|
|
5
|
+
* Farm plugin
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* // farm.config.js
|
|
10
|
+
* import Oxc from 'unplugin-oxc/farm'
|
|
10
11
|
*
|
|
11
|
-
*
|
|
12
|
+
* export default {
|
|
13
|
+
* plugins: [Oxc()],
|
|
14
|
+
* }
|
|
15
|
+
* ```
|
|
12
16
|
*/
|
|
13
|
-
|
|
14
17
|
/**
|
|
15
18
|
* Farm plugin
|
|
16
19
|
*
|
|
@@ -26,4 +29,5 @@ import 'unplugin-utils';
|
|
|
26
29
|
*/
|
|
27
30
|
declare const farm: typeof Oxc.farm;
|
|
28
31
|
|
|
29
|
-
|
|
32
|
+
//#endregion
|
|
33
|
+
export { farm as default, farm as "module.exports" };
|
|
@@ -0,0 +1,47 @@
|
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,52 +1,3 @@
|
|
|
1
|
-
import
|
|
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$1 as Oxc } from "./index.d-CoyCeNoL.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 };
|
package/dist/rolldown.d.ts
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import { Oxc } from
|
|
2
|
-
import 'unplugin';
|
|
3
|
-
import 'oxc-minify';
|
|
4
|
-
import 'oxc-resolver';
|
|
5
|
-
import 'oxc-transform';
|
|
6
|
-
import 'unplugin-utils';
|
|
1
|
+
import { Oxc$1 as Oxc } from "./index.d-CoyCeNoL.js";
|
|
7
2
|
|
|
3
|
+
//#region src/rolldown.d.ts
|
|
8
4
|
/**
|
|
9
|
-
*
|
|
5
|
+
* Rolldown plugin
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* // rolldown.config.js
|
|
10
|
+
* import Oxc from 'unplugin-oxc/rolldown'
|
|
10
11
|
*
|
|
11
|
-
*
|
|
12
|
+
* export default {
|
|
13
|
+
* plugins: [Oxc()],
|
|
14
|
+
* }
|
|
15
|
+
* ```
|
|
12
16
|
*/
|
|
13
|
-
|
|
14
17
|
/**
|
|
15
18
|
* Rolldown plugin
|
|
16
19
|
*
|
|
@@ -26,4 +29,5 @@ import 'unplugin-utils';
|
|
|
26
29
|
*/
|
|
27
30
|
declare const rolldown: typeof Oxc.rolldown;
|
|
28
31
|
|
|
29
|
-
|
|
32
|
+
//#endregion
|
|
33
|
+
export { rolldown as default, rolldown as "module.exports" };
|
package/dist/rollup.d.ts
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import { Oxc } from
|
|
2
|
-
import 'unplugin';
|
|
3
|
-
import 'oxc-minify';
|
|
4
|
-
import 'oxc-resolver';
|
|
5
|
-
import 'oxc-transform';
|
|
6
|
-
import 'unplugin-utils';
|
|
1
|
+
import { Oxc$1 as Oxc } from "./index.d-CoyCeNoL.js";
|
|
7
2
|
|
|
3
|
+
//#region src/rollup.d.ts
|
|
8
4
|
/**
|
|
9
|
-
*
|
|
5
|
+
* Rollup plugin
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* // rollup.config.js
|
|
10
|
+
* import Oxc from 'unplugin-oxc/rollup'
|
|
10
11
|
*
|
|
11
|
-
*
|
|
12
|
+
* export default {
|
|
13
|
+
* plugins: [Oxc()],
|
|
14
|
+
* }
|
|
15
|
+
* ```
|
|
12
16
|
*/
|
|
13
|
-
|
|
14
17
|
/**
|
|
15
18
|
* Rollup plugin
|
|
16
19
|
*
|
|
@@ -26,4 +29,5 @@ import 'unplugin-utils';
|
|
|
26
29
|
*/
|
|
27
30
|
declare const rollup: typeof Oxc.rollup;
|
|
28
31
|
|
|
29
|
-
|
|
32
|
+
//#endregion
|
|
33
|
+
export { rollup as default, rollup as "module.exports" };
|
package/dist/rspack.d.ts
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import { Oxc } from
|
|
2
|
-
import 'unplugin';
|
|
3
|
-
import 'oxc-minify';
|
|
4
|
-
import 'oxc-resolver';
|
|
5
|
-
import 'oxc-transform';
|
|
6
|
-
import 'unplugin-utils';
|
|
1
|
+
import { Oxc$1 as Oxc } from "./index.d-CoyCeNoL.js";
|
|
7
2
|
|
|
3
|
+
//#region src/rspack.d.ts
|
|
8
4
|
/**
|
|
9
|
-
*
|
|
5
|
+
* Rspack plugin
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```js
|
|
9
|
+
* // rspack.config.js
|
|
10
|
+
* import Oxc from 'unplugin-oxc/rspack'
|
|
10
11
|
*
|
|
11
|
-
*
|
|
12
|
+
* default export {
|
|
13
|
+
* plugins: [Oxc()],
|
|
14
|
+
* }
|
|
15
|
+
* ```
|
|
12
16
|
*/
|
|
13
|
-
|
|
14
17
|
/**
|
|
15
18
|
* Rspack plugin
|
|
16
19
|
*
|
|
@@ -26,4 +29,5 @@ import 'unplugin-utils';
|
|
|
26
29
|
*/
|
|
27
30
|
declare const rspack: typeof Oxc.rspack;
|
|
28
31
|
|
|
29
|
-
|
|
32
|
+
//#endregion
|
|
33
|
+
export { rspack as default, rspack as "module.exports" };
|
package/dist/unloader.d.ts
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import { Oxc } from
|
|
2
|
-
import 'unplugin';
|
|
3
|
-
import 'oxc-minify';
|
|
4
|
-
import 'oxc-resolver';
|
|
5
|
-
import 'oxc-transform';
|
|
6
|
-
import 'unplugin-utils';
|
|
1
|
+
import { Oxc$1 as Oxc } from "./index.d-CoyCeNoL.js";
|
|
7
2
|
|
|
3
|
+
//#region src/unloader.d.ts
|
|
8
4
|
/**
|
|
9
|
-
*
|
|
5
|
+
* Unloader plugin
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* // unloader.config.js
|
|
10
|
+
* import Oxc from 'unplugin-oxc/unloader'
|
|
10
11
|
*
|
|
11
|
-
*
|
|
12
|
+
* export default {
|
|
13
|
+
* plugins: [Oxc()],
|
|
14
|
+
* }
|
|
15
|
+
* ```
|
|
12
16
|
*/
|
|
13
|
-
|
|
14
17
|
/**
|
|
15
18
|
* Unloader plugin
|
|
16
19
|
*
|
|
@@ -26,4 +29,5 @@ import 'unplugin-utils';
|
|
|
26
29
|
*/
|
|
27
30
|
declare const unloader: typeof Oxc.unloader;
|
|
28
31
|
|
|
29
|
-
|
|
32
|
+
//#endregion
|
|
33
|
+
export { unloader as default, unloader as "module.exports" };
|
package/dist/vite.d.ts
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import { Oxc } from
|
|
2
|
-
import 'unplugin';
|
|
3
|
-
import 'oxc-minify';
|
|
4
|
-
import 'oxc-resolver';
|
|
5
|
-
import 'oxc-transform';
|
|
6
|
-
import 'unplugin-utils';
|
|
1
|
+
import { Oxc$1 as Oxc } from "./index.d-CoyCeNoL.js";
|
|
7
2
|
|
|
3
|
+
//#region src/vite.d.ts
|
|
8
4
|
/**
|
|
9
|
-
*
|
|
5
|
+
* Vite plugin
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* // vite.config.ts
|
|
10
|
+
* import Oxc from 'unplugin-oxc/vite'
|
|
10
11
|
*
|
|
11
|
-
*
|
|
12
|
+
* export default defineConfig({
|
|
13
|
+
* plugins: [Oxc()],
|
|
14
|
+
* })
|
|
15
|
+
* ```
|
|
12
16
|
*/
|
|
13
|
-
|
|
14
17
|
/**
|
|
15
18
|
* Vite plugin
|
|
16
19
|
*
|
|
@@ -26,4 +29,5 @@ import 'unplugin-utils';
|
|
|
26
29
|
*/
|
|
27
30
|
declare const vite: typeof Oxc.vite;
|
|
28
31
|
|
|
29
|
-
|
|
32
|
+
//#endregion
|
|
33
|
+
export { vite as default, vite as "module.exports" };
|
package/dist/webpack.d.ts
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import { Oxc } from
|
|
2
|
-
import 'unplugin';
|
|
3
|
-
import 'oxc-minify';
|
|
4
|
-
import 'oxc-resolver';
|
|
5
|
-
import 'oxc-transform';
|
|
6
|
-
import 'unplugin-utils';
|
|
1
|
+
import { Oxc$1 as Oxc } from "./index.d-CoyCeNoL.js";
|
|
7
2
|
|
|
3
|
+
//#region src/webpack.d.ts
|
|
8
4
|
/**
|
|
9
|
-
*
|
|
5
|
+
* Webpack plugin
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```js
|
|
9
|
+
* // webpack.config.js
|
|
10
|
+
* import Oxc from 'unplugin-oxc/webpack'
|
|
10
11
|
*
|
|
11
|
-
*
|
|
12
|
+
* default export {
|
|
13
|
+
* plugins: [Oxc()],
|
|
14
|
+
* }
|
|
15
|
+
* ```
|
|
12
16
|
*/
|
|
13
|
-
|
|
14
17
|
/**
|
|
15
18
|
* Webpack plugin
|
|
16
19
|
*
|
|
@@ -26,4 +29,5 @@ import 'unplugin-utils';
|
|
|
26
29
|
*/
|
|
27
30
|
declare const webpack: typeof Oxc.webpack;
|
|
28
31
|
|
|
29
|
-
|
|
32
|
+
//#endregion
|
|
33
|
+
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.4",
|
|
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": "^5.0
|
|
68
|
-
"oxc-transform": "^0.
|
|
69
|
-
"unplugin": "^2.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
|
-
"@sxzz/eslint-config": "^6.1.
|
|
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.
|
|
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.
|
|
81
|
-
"tinyexec": "^1.0.
|
|
82
|
-
"tsdown": "^0.
|
|
80
|
+
"rollup": "^4.40.0",
|
|
81
|
+
"tinyexec": "^1.0.1",
|
|
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.
|
|
87
|
-
"vitest": "^3.
|
|
86
|
+
"vite": "^6.3.2",
|
|
87
|
+
"vitest": "^3.1.1"
|
|
88
88
|
},
|
|
89
89
|
"engines": {
|
|
90
90
|
"node": ">=18.12.0"
|