unplugin-oxc 0.5.4 → 0.5.5

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.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as Oxc } from "./src-Cwmf7KjW.mjs";
1
+ import { t as Oxc } from "./src-CC29LGxl.mjs";
2
2
 
3
3
  //#region src/esbuild.ts
4
4
  /**
package/dist/farm.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as Oxc } from "./src-Cwmf7KjW.mjs";
1
+ import { t as Oxc } from "./src-CC29LGxl.mjs";
2
2
 
3
3
  //#region src/farm.ts
4
4
  /**
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { t as Oxc } from "./src-Cwmf7KjW.mjs";
1
+ import { t as Oxc } from "./src-CC29LGxl.mjs";
2
2
 
3
3
  export { Oxc };
package/dist/rolldown.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as Oxc } from "./src-Cwmf7KjW.mjs";
1
+ import { t as Oxc } from "./src-CC29LGxl.mjs";
2
2
 
3
3
  //#region src/rolldown.ts
4
4
  /**
package/dist/rollup.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as Oxc } from "./src-Cwmf7KjW.mjs";
1
+ import { t as Oxc } from "./src-CC29LGxl.mjs";
2
2
 
3
3
  //#region src/rollup.ts
4
4
  /**
package/dist/rspack.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as Oxc } from "./src-Cwmf7KjW.mjs";
1
+ import { t as Oxc } from "./src-CC29LGxl.mjs";
2
2
 
3
3
  //#region src/rspack.ts
4
4
  /**
@@ -2,7 +2,7 @@ import { readFileSync } from "node:fs";
2
2
  import path from "node:path";
3
3
  import process from "node:process";
4
4
  import { ResolverFactory } from "oxc-resolver";
5
- import { transform } from "oxc-transform";
5
+ import { transformSync } from "oxc-transform";
6
6
  import { createUnplugin } from "unplugin";
7
7
 
8
8
  //#region node_modules/.pnpm/@antfu+utils@9.3.0/node_modules/@antfu/utils/dist/index.mjs
@@ -82,9 +82,9 @@ const Oxc = createUnplugin((rawOptions = {}, { framework }) => {
82
82
  };
83
83
  }
84
84
  };
85
- const transform$1 = options.transform === false ? void 0 : (code, id, ...args) => {
85
+ const transform = options.transform === false ? void 0 : (code, id, ...args) => {
86
86
  const [transformOptions] = args;
87
- const result = transform(id, code, {
87
+ const result = transformSync(id, code, {
88
88
  ...options.transform,
89
89
  sourceType: guessSourceType(id, transformOptions?.format),
90
90
  sourcemap: options.sourcemap
@@ -97,7 +97,7 @@ const Oxc = createUnplugin((rawOptions = {}, { framework }) => {
97
97
  };
98
98
  const renderChunk = options.minify === false ? void 0 : async (code, chunk) => {
99
99
  const { minify } = await import("oxc-minify");
100
- const result = minify(chunk.fileName, code, {
100
+ const result = await minify(chunk.fileName, code, {
101
101
  ...options.minify === true ? {} : options.minify,
102
102
  sourcemap: options.sourcemap
103
103
  });
@@ -138,12 +138,12 @@ const Oxc = createUnplugin((rawOptions = {}, { framework }) => {
138
138
  name: "unplugin-oxc",
139
139
  enforce: options.enforce,
140
140
  resolveId,
141
- transform: transform$1 ? {
141
+ transform: transform ? {
142
142
  filter: { id: {
143
143
  include: options.include,
144
144
  exclude: options.exclude
145
145
  } },
146
- handler: transform$1
146
+ handler: transform
147
147
  } : void 0,
148
148
  rollup: { renderChunk },
149
149
  rolldown: { renderChunk },
package/dist/unloader.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as Oxc } from "./src-Cwmf7KjW.mjs";
1
+ import { t as Oxc } from "./src-CC29LGxl.mjs";
2
2
 
3
3
  //#region src/unloader.ts
4
4
  /**
package/dist/vite.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as Oxc } from "./src-Cwmf7KjW.mjs";
1
+ import { t as Oxc } from "./src-CC29LGxl.mjs";
2
2
 
3
3
  //#region src/vite.ts
4
4
  /**
package/dist/webpack.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as Oxc } from "./src-Cwmf7KjW.mjs";
1
+ import { t as Oxc } from "./src-CC29LGxl.mjs";
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.4",
3
+ "version": "0.5.5",
4
4
  "description": "Oxc integration for unplugin.",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -63,9 +63,9 @@
63
63
  }
64
64
  },
65
65
  "dependencies": {
66
- "oxc-minify": ">=0.97.0",
66
+ "oxc-minify": ">=0.98.0",
67
67
  "oxc-resolver": "^11.13.2",
68
- "oxc-transform": ">=0.97.0",
68
+ "oxc-transform": ">=0.98.0",
69
69
  "unplugin": "^2.3.10"
70
70
  },
71
71
  "devDependencies": {
@@ -79,12 +79,12 @@
79
79
  "prettier": "^3.6.2",
80
80
  "rollup": "^4.53.2",
81
81
  "tinyexec": "^1.0.2",
82
- "tsdown": "^0.16.4",
82
+ "tsdown": "^0.16.5",
83
83
  "tsx": "^4.20.6",
84
84
  "typescript": "^5.9.3",
85
85
  "unloader": "^0.8.0",
86
86
  "vite": "^7.2.2",
87
- "vitest": "^4.0.8"
87
+ "vitest": "^4.0.10"
88
88
  },
89
89
  "engines": {
90
90
  "node": ">=20.19.0"