unplugin-oxc 0.3.0 → 0.3.2
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.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-DDJ_1YNm.js → src-Bw_izk11.js} +2 -1
- package/dist/unloader.js +1 -1
- package/dist/vite.js +1 -1
- package/dist/webpack.js +1 -1
- package/package.json +5 -5
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
|
@@ -122,7 +122,8 @@ const Oxc = createUnplugin((rawOptions = {}, { framework }) => {
|
|
|
122
122
|
function guessSourceType(id, format) {
|
|
123
123
|
if (format === "module" || format === "module-typescript") return "module";
|
|
124
124
|
else if (format === "commonjs" || format === "commonjs-typescript") return "script";
|
|
125
|
-
|
|
125
|
+
const moduleFormat = getModuleFormat(id);
|
|
126
|
+
if (moduleFormat) return moduleFormat === "module" ? "module" : "script";
|
|
126
127
|
}
|
|
127
128
|
|
|
128
129
|
//#endregion
|
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.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Oxc integration for unplugin.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -63,14 +63,14 @@
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"oxc-minify": "^0.
|
|
66
|
+
"oxc-minify": "^0.61.1",
|
|
67
67
|
"oxc-resolver": "^5.0.1",
|
|
68
|
-
"oxc-transform": "^0.
|
|
68
|
+
"oxc-transform": "^0.61.1",
|
|
69
69
|
"unplugin": "^2.2.1",
|
|
70
70
|
"unplugin-utils": "^0.2.4"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@sxzz/eslint-config": "^6.0
|
|
73
|
+
"@sxzz/eslint-config": "^6.1.0",
|
|
74
74
|
"@sxzz/prettier-config": "^2.2.1",
|
|
75
75
|
"@sxzz/test-utils": "^0.5.2",
|
|
76
76
|
"@types/node": "^22.13.10",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"tsdown": "^0.6.9",
|
|
83
83
|
"tsx": "^4.19.3",
|
|
84
84
|
"typescript": "^5.8.2",
|
|
85
|
-
"unloader": "^0.4.
|
|
85
|
+
"unloader": "^0.4.3",
|
|
86
86
|
"vite": "^6.2.2",
|
|
87
87
|
"vitest": "^3.0.9"
|
|
88
88
|
},
|