unplugin-oxc 0.3.0 → 0.3.1

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 CHANGED
@@ -1,4 +1,4 @@
1
- import { Oxc } from "./src-DDJ_1YNm.js";
1
+ import { Oxc } from "./src-Bw_izk11.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-DDJ_1YNm.js";
1
+ import { Oxc } from "./src-Bw_izk11.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-DDJ_1YNm.js";
1
+ import { Oxc } from "./src-Bw_izk11.js";
2
2
 
3
3
  export { Oxc };
package/dist/rolldown.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Oxc } from "./src-DDJ_1YNm.js";
1
+ import { Oxc } from "./src-Bw_izk11.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-DDJ_1YNm.js";
1
+ import { Oxc } from "./src-Bw_izk11.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-DDJ_1YNm.js";
1
+ import { Oxc } from "./src-Bw_izk11.js";
2
2
 
3
3
  //#region src/rspack.ts
4
4
  /**
@@ -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
- else return getModuleFormat(id) === "module" ? "module" : "script";
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
@@ -1,4 +1,4 @@
1
- import { Oxc } from "./src-DDJ_1YNm.js";
1
+ import { Oxc } from "./src-Bw_izk11.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-DDJ_1YNm.js";
1
+ import { Oxc } from "./src-Bw_izk11.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-DDJ_1YNm.js";
1
+ import { Oxc } from "./src-Bw_izk11.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.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Oxc integration for unplugin.",
5
5
  "type": "module",
6
6
  "keywords": [