unplugin-oxc 0.5.2 → 0.5.3
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/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/esbuild.js +1 -1
- package/dist/farm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/rolldown.js +1 -1
- package/dist/rollup.js +1 -1
- package/dist/rspack.js +1 -1
- package/dist/{src-zdyCluyM.js → src-q7oiMldm.js} +6 -6
- package/dist/unloader.js +1 -1
- package/dist/vite.js +1 -1
- package/dist/webpack.js +1 -1
- package/package.json +15 -15
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright ©
|
|
3
|
+
Copyright © 2025-PRESENT Kevin Deng (https://github.com/sxzz)
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
package/dist/esbuild.js
CHANGED
package/dist/farm.js
CHANGED
package/dist/index.js
CHANGED
package/dist/rolldown.js
CHANGED
package/dist/rollup.js
CHANGED
package/dist/rspack.js
CHANGED
|
@@ -39,7 +39,7 @@ function getModuleFormat(id) {
|
|
|
39
39
|
const Oxc = createUnplugin((rawOptions = {}, { framework }) => {
|
|
40
40
|
const options = resolveOptions(rawOptions, framework);
|
|
41
41
|
const filter = createFilter(options.include, options.exclude);
|
|
42
|
-
const resolveId = options.resolve
|
|
42
|
+
const resolveId = options.resolve === false ? void 0 : (id, importer, resolveOptions$1) => {
|
|
43
43
|
if (!options.resolveNodeModules && id[0] !== "." && !path.isAbsolute(id)) return;
|
|
44
44
|
const resolver = new ResolverFactory({
|
|
45
45
|
extensions: [
|
|
@@ -76,8 +76,8 @@ const Oxc = createUnplugin((rawOptions = {}, { framework }) => {
|
|
|
76
76
|
format
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
|
-
}
|
|
80
|
-
const transform$1 = options.transform
|
|
79
|
+
};
|
|
80
|
+
const transform$1 = options.transform === false ? void 0 : (code, id, ...args) => {
|
|
81
81
|
const [transformOptions] = args;
|
|
82
82
|
const result = transform(id, code, {
|
|
83
83
|
...options.transform,
|
|
@@ -89,8 +89,8 @@ const Oxc = createUnplugin((rawOptions = {}, { framework }) => {
|
|
|
89
89
|
code: result.code,
|
|
90
90
|
map: result.map
|
|
91
91
|
};
|
|
92
|
-
}
|
|
93
|
-
const renderChunk = options.minify
|
|
92
|
+
};
|
|
93
|
+
const renderChunk = options.minify === false ? void 0 : async (code, chunk) => {
|
|
94
94
|
const { minify } = await import("oxc-minify");
|
|
95
95
|
const result = minify(chunk.fileName, code, {
|
|
96
96
|
...options.minify === true ? {} : options.minify,
|
|
@@ -100,7 +100,7 @@ const Oxc = createUnplugin((rawOptions = {}, { framework }) => {
|
|
|
100
100
|
code: result.code,
|
|
101
101
|
map: result.map
|
|
102
102
|
};
|
|
103
|
-
}
|
|
103
|
+
};
|
|
104
104
|
return {
|
|
105
105
|
name: "unplugin-oxc",
|
|
106
106
|
enforce: options.enforce,
|
package/dist/unloader.js
CHANGED
package/dist/vite.js
CHANGED
package/dist/webpack.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unplugin-oxc",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"description": "Oxc integration for unplugin.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"type": "git",
|
|
23
23
|
"url": "git+https://github.com/unplugin/unplugin-oxc.git"
|
|
24
24
|
},
|
|
25
|
-
"author": "
|
|
25
|
+
"author": "Kevin Deng <sxzz@sxzz.moe>",
|
|
26
26
|
"funding": "https://github.com/sponsors/sxzz",
|
|
27
27
|
"files": [
|
|
28
28
|
"dist"
|
|
@@ -63,27 +63,27 @@
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"oxc-minify": ">=0.
|
|
67
|
-
"oxc-resolver": "^11.
|
|
68
|
-
"oxc-transform": ">=0.
|
|
66
|
+
"oxc-minify": ">=0.94.0",
|
|
67
|
+
"oxc-resolver": "^11.9.0",
|
|
68
|
+
"oxc-transform": ">=0.94.0",
|
|
69
69
|
"unplugin": "^2.3.10",
|
|
70
|
-
"unplugin-utils": "^0.3.
|
|
70
|
+
"unplugin-utils": "^0.3.1"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@sxzz/eslint-config": "^7.
|
|
73
|
+
"@sxzz/eslint-config": "^7.2.7",
|
|
74
74
|
"@sxzz/prettier-config": "^2.2.4",
|
|
75
75
|
"@sxzz/test-utils": "^0.5.11",
|
|
76
|
-
"@types/node": "^24.
|
|
77
|
-
"bumpp": "^10.
|
|
78
|
-
"eslint": "^9.
|
|
76
|
+
"@types/node": "^24.7.0",
|
|
77
|
+
"bumpp": "^10.3.1",
|
|
78
|
+
"eslint": "^9.37.0",
|
|
79
79
|
"prettier": "^3.6.2",
|
|
80
|
-
"rollup": "^4.
|
|
80
|
+
"rollup": "^4.52.4",
|
|
81
81
|
"tinyexec": "^1.0.1",
|
|
82
|
-
"tsdown": "^0.15.
|
|
83
|
-
"tsx": "^4.20.
|
|
84
|
-
"typescript": "^5.9.
|
|
82
|
+
"tsdown": "^0.15.6",
|
|
83
|
+
"tsx": "^4.20.6",
|
|
84
|
+
"typescript": "^5.9.3",
|
|
85
85
|
"unloader": "^0.5.0",
|
|
86
|
-
"vite": "^7.1.
|
|
86
|
+
"vite": "^7.1.9",
|
|
87
87
|
"vitest": "^3.2.4"
|
|
88
88
|
},
|
|
89
89
|
"engines": {
|