unplugin-oxc 0.4.4 → 0.4.6
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/esbuild.js +1 -1
- package/dist/farm.d.ts +3 -15
- package/dist/farm.js +1 -1
- package/dist/{index-BLDXBZFF.d.ts → index-DCbJ-kOf.d.ts} +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/rolldown.d.ts +3 -15
- package/dist/rolldown.js +1 -1
- package/dist/rollup.d.ts +3 -15
- package/dist/rollup.js +1 -1
- package/dist/rspack.d.ts +3 -15
- package/dist/rspack.js +1 -1
- package/dist/{src-VARAeVoC.js → src-pBkchcHA.js} +3 -0
- package/dist/unloader.d.ts +3 -15
- package/dist/unloader.js +1 -1
- package/dist/vite.d.ts +3 -15
- package/dist/vite.js +1 -1
- package/dist/webpack.d.ts +3 -15
- package/dist/webpack.js +1 -1
- package/package.json +16 -16
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/esbuild.js
CHANGED
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" };
|
package/dist/farm.js
CHANGED
|
@@ -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/index.js
CHANGED
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/rolldown.js
CHANGED
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/rollup.js
CHANGED
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/rspack.js
CHANGED
|
@@ -30,6 +30,8 @@ function getModuleFormat(id) {
|
|
|
30
30
|
case ".cjs":
|
|
31
31
|
case ".cts": return "commonjs";
|
|
32
32
|
case ".json": return "json";
|
|
33
|
+
case ".jsx":
|
|
34
|
+
case ".tsx": return "module";
|
|
33
35
|
}
|
|
34
36
|
}
|
|
35
37
|
|
|
@@ -58,6 +60,7 @@ const Oxc = createUnplugin((rawOptions = {}, { framework }) => {
|
|
|
58
60
|
"default"
|
|
59
61
|
],
|
|
60
62
|
builtinModules: true,
|
|
63
|
+
moduleType: true,
|
|
61
64
|
...options.resolve
|
|
62
65
|
});
|
|
63
66
|
const directory = importer ? path.dirname(importer) : process.cwd();
|
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/unloader.js
CHANGED
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/vite.js
CHANGED
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/dist/webpack.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unplugin-oxc",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.6",
|
|
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.75.0",
|
|
67
|
+
"oxc-resolver": "^11.3.0",
|
|
68
|
+
"oxc-transform": "^0.75.0",
|
|
69
|
+
"unplugin": "^2.3.5",
|
|
70
70
|
"unplugin-utils": "^0.2.4"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@sxzz/eslint-config": "^7.0.
|
|
74
|
-
"@sxzz/prettier-config": "^2.2.
|
|
73
|
+
"@sxzz/eslint-config": "^7.0.4",
|
|
74
|
+
"@sxzz/prettier-config": "^2.2.3",
|
|
75
75
|
"@sxzz/test-utils": "^0.5.6",
|
|
76
|
-
"@types/node": "^
|
|
77
|
-
"bumpp": "^10.
|
|
78
|
-
"eslint": "^9.
|
|
79
|
-
"prettier": "^3.
|
|
80
|
-
"rollup": "^4.
|
|
76
|
+
"@types/node": "^24.0.4",
|
|
77
|
+
"bumpp": "^10.2.0",
|
|
78
|
+
"eslint": "^9.29.0",
|
|
79
|
+
"prettier": "^3.6.1",
|
|
80
|
+
"rollup": "^4.44.1",
|
|
81
81
|
"tinyexec": "^1.0.1",
|
|
82
|
-
"tsdown": "^0.
|
|
83
|
-
"tsx": "^4.
|
|
82
|
+
"tsdown": "^0.12.9",
|
|
83
|
+
"tsx": "^4.20.3",
|
|
84
84
|
"typescript": "^5.8.3",
|
|
85
85
|
"unloader": "^0.4.5",
|
|
86
|
-
"vite": "^
|
|
87
|
-
"vitest": "^3.
|
|
86
|
+
"vite": "^7.0.0",
|
|
87
|
+
"vitest": "^3.2.4"
|
|
88
88
|
},
|
|
89
89
|
"engines": {
|
|
90
90
|
"node": ">=20.18.0"
|