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 CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright © 2024-PRESENT 三咲智子 (https://github.com/sxzz)
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
@@ -165,7 +165,7 @@ interface Options {
165
165
 
166
166
  ## License
167
167
 
168
- [MIT](./LICENSE) License © 2025-PRESENT [三咲智子](https://github.com/sxzz)
168
+ [MIT](./LICENSE) License © 2025-PRESENT [Kevin Deng](https://github.com/sxzz)
169
169
 
170
170
  <!-- Badges -->
171
171
 
package/dist/esbuild.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Oxc } from "./src-zdyCluyM.js";
1
+ import { Oxc } from "./src-q7oiMldm.js";
2
2
 
3
3
  //#region src/esbuild.ts
4
4
  /**
package/dist/farm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Oxc } from "./src-zdyCluyM.js";
1
+ import { Oxc } from "./src-q7oiMldm.js";
2
2
 
3
3
  //#region src/farm.ts
4
4
  /**
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { Oxc } from "./src-zdyCluyM.js";
1
+ import { Oxc } from "./src-q7oiMldm.js";
2
2
 
3
3
  export { Oxc };
package/dist/rolldown.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Oxc } from "./src-zdyCluyM.js";
1
+ import { Oxc } from "./src-q7oiMldm.js";
2
2
 
3
3
  //#region src/rolldown.ts
4
4
  /**
package/dist/rollup.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Oxc } from "./src-zdyCluyM.js";
1
+ import { Oxc } from "./src-q7oiMldm.js";
2
2
 
3
3
  //#region src/rollup.ts
4
4
  /**
package/dist/rspack.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Oxc } from "./src-zdyCluyM.js";
1
+ import { Oxc } from "./src-q7oiMldm.js";
2
2
 
3
3
  //#region src/rspack.ts
4
4
  /**
@@ -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 !== false ? (id, importer, resolveOptions$1) => {
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
- } : void 0;
80
- const transform$1 = options.transform !== false ? (code, id, ...args) => {
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
- } : void 0;
93
- const renderChunk = options.minify !== false ? async (code, chunk) => {
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
- } : void 0;
103
+ };
104
104
  return {
105
105
  name: "unplugin-oxc",
106
106
  enforce: options.enforce,
package/dist/unloader.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Oxc } from "./src-zdyCluyM.js";
1
+ import { Oxc } from "./src-q7oiMldm.js";
2
2
 
3
3
  //#region src/unloader.ts
4
4
  /**
package/dist/vite.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Oxc } from "./src-zdyCluyM.js";
1
+ import { Oxc } from "./src-q7oiMldm.js";
2
2
 
3
3
  //#region src/vite.ts
4
4
  /**
package/dist/webpack.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Oxc } from "./src-zdyCluyM.js";
1
+ import { Oxc } from "./src-q7oiMldm.js";
2
2
 
3
3
  //#region src/webpack.ts
4
4
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unplugin-oxc",
3
- "version": "0.5.2",
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": "三咲智子 Kevin Deng <sxzz@sxzz.moe>",
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.89.0",
67
- "oxc-resolver": "^11.8.0",
68
- "oxc-transform": ">=0.89.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.0"
70
+ "unplugin-utils": "^0.3.1"
71
71
  },
72
72
  "devDependencies": {
73
- "@sxzz/eslint-config": "^7.1.4",
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.5.0",
77
- "bumpp": "^10.2.3",
78
- "eslint": "^9.35.0",
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.50.2",
80
+ "rollup": "^4.52.4",
81
81
  "tinyexec": "^1.0.1",
82
- "tsdown": "^0.15.1",
83
- "tsx": "^4.20.5",
84
- "typescript": "^5.9.2",
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.5",
86
+ "vite": "^7.1.9",
87
87
  "vitest": "^3.2.4"
88
88
  },
89
89
  "engines": {