rolldown-require 2.0.19 → 2.0.20

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/index.d.mts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { ExternalOption, InputOptions, OutputOptions } from "rolldown";
2
-
3
2
  //#region src/types.d.ts
4
3
  type RequireFunction = (outfile: string, ctx: {
5
4
  format: 'cjs' | 'esm';
package/dist/index.mjs CHANGED
@@ -13,7 +13,7 @@ import { promisify } from "node:util";
13
13
  import { Buffer as Buffer$1 } from "node:buffer";
14
14
  import { getTsconfig } from "get-tsconfig";
15
15
  //#region \0rolldown/runtime.js
16
- var __require = /* @__PURE__ */ createRequire(import.meta.url);
16
+ var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
17
17
  //#endregion
18
18
  //#region src/collect.ts
19
19
  /**
@@ -524,7 +524,7 @@ function createEntrySourcePlugin({ fileName, source }) {
524
524
  };
525
525
  }
526
526
  function collectEntryFileNames(fileName) {
527
- const fileNames = new Set([path.resolve(fileName)]);
527
+ const fileNames = /* @__PURE__ */ new Set([path.resolve(fileName)]);
528
528
  try {
529
529
  fileNames.add(safeRealpathSync(fileName));
530
530
  } catch {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rolldown-require",
3
3
  "type": "module",
4
- "version": "2.0.19",
4
+ "version": "2.0.20",
5
5
  "description": "bundle and require a file using rolldown!",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -48,7 +48,7 @@
48
48
  "node": "^20.19.0 || >=22.12.0"
49
49
  },
50
50
  "peerDependencies": {
51
- "rolldown": "1.1.1"
51
+ "rolldown": "1.1.5"
52
52
  },
53
53
  "dependencies": {
54
54
  "@rollup/pluginutils": "^5.4.0",