unplugin-oxc 0.2.3 → 0.2.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/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-CFVXTEFR.js → src-ByY2eXwv.js} +2 -1
- package/dist/unloader.js +1 -1
- package/dist/vite.js +1 -1
- package/dist/webpack.js +1 -1
- package/package.json +2 -1
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
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { readFile } from "node:fs/promises";
|
|
2
2
|
import path from "node:path";
|
|
3
|
+
import process from "node:process";
|
|
3
4
|
import { minify } from "oxc-minify";
|
|
4
5
|
import { ResolverFactory } from "oxc-resolver";
|
|
5
6
|
import { transform } from "oxc-transform";
|
|
@@ -60,7 +61,7 @@ const Oxc = createUnplugin((rawOptions = {}, { framework }) => {
|
|
|
60
61
|
builtinModules: true,
|
|
61
62
|
...options.resolve
|
|
62
63
|
});
|
|
63
|
-
const directory = path.dirname(importer
|
|
64
|
+
const directory = importer ? path.dirname(importer) : process.cwd();
|
|
64
65
|
const resolved = await resolver.async(directory, id);
|
|
65
66
|
if (resolved.error?.startsWith("Builtin module")) return {
|
|
66
67
|
id,
|
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.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Oxc integration for unplugin.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"eslint": "^9.20.1",
|
|
74
74
|
"prettier": "^3.5.0",
|
|
75
75
|
"rollup": "^4.34.6",
|
|
76
|
+
"tinyexec": "^0.3.2",
|
|
76
77
|
"tsdown": "^0.5.9",
|
|
77
78
|
"tsx": "^4.19.2",
|
|
78
79
|
"typescript": "^5.7.3",
|