rolldown-require 2.1.7 → 2.1.8-dev.20261128.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/index.mjs +4 -4
- package/package.json +12 -4
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { builtinModules, createRequire } from "node:module";
|
|
2
1
|
import path from "node:path";
|
|
3
2
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
4
3
|
import { rolldown } from "rolldown";
|
|
5
4
|
import fs, { readFileSync } from "node:fs";
|
|
5
|
+
import { builtinModules, createRequire } from "node:module";
|
|
6
6
|
import process from "node:process";
|
|
7
7
|
import { exec } from "node:child_process";
|
|
8
|
-
import { createFilter } from "@rollup/pluginutils";
|
|
8
|
+
import { createFilter as createFilter$1 } from "@rollup/pluginutils";
|
|
9
9
|
import crypto from "node:crypto";
|
|
10
10
|
import fsp from "node:fs/promises";
|
|
11
11
|
import os from "node:os";
|
|
@@ -76,7 +76,7 @@ function loadPackageData(pkgPath) {
|
|
|
76
76
|
if (sideEffect.includes("/")) return sideEffect;
|
|
77
77
|
return `**/${sideEffect}`;
|
|
78
78
|
});
|
|
79
|
-
hasSideEffects = createFilter
|
|
79
|
+
hasSideEffects = createFilter(finalPackageSideEffects, null, { resolve: pkgDir });
|
|
80
80
|
}
|
|
81
81
|
} else hasSideEffects = () => null;
|
|
82
82
|
const resolvedCache = {};
|
|
@@ -151,7 +151,7 @@ function traverseBetweenDirs(longerDir, shorterDir, cb) {
|
|
|
151
151
|
// src/utils.ts
|
|
152
152
|
const MJS_MTS_EXT_RE = /\.m[jt]s$/;
|
|
153
153
|
const CJS_CTS_EXT_RE = /\.c[jt]s$/;
|
|
154
|
-
const createFilter
|
|
154
|
+
const createFilter = createFilter$1;
|
|
155
155
|
const NODE_BUILTIN_NAMESPACE = "node:";
|
|
156
156
|
const NPM_BUILTIN_NAMESPACE = "npm:";
|
|
157
157
|
const BUN_BUILTIN_NAMESPACE = "bun:";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown-require",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.8-dev.20261128.1",
|
|
5
5
|
"description": "bundle and require a file using rolldown!",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -54,10 +54,11 @@
|
|
|
54
54
|
},
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"access": "public",
|
|
57
|
-
"registry": "https://registry.npmjs.org"
|
|
57
|
+
"registry": "https://registry.npmjs.org/",
|
|
58
|
+
"tag": "snapshot-nightly"
|
|
58
59
|
},
|
|
59
60
|
"peerDependencies": {
|
|
60
|
-
"rolldown": "1.
|
|
61
|
+
"rolldown": "1.3.4"
|
|
61
62
|
},
|
|
62
63
|
"dependencies": {
|
|
63
64
|
"@rollup/pluginutils": "^5.5.1",
|
|
@@ -66,6 +67,13 @@
|
|
|
66
67
|
"devDependencies": {
|
|
67
68
|
"@types/pnpapi": "^0.0.5"
|
|
68
69
|
},
|
|
70
|
+
"repoctlSnapshot": {
|
|
71
|
+
"kind": "nightly",
|
|
72
|
+
"commit": "ec17eeb0c156fc6691bcbaf95e8686ac419a6e94",
|
|
73
|
+
"buildId": "46104956345-1",
|
|
74
|
+
"identityKey": "f53748ff8746c04dadf1ec0a2e5eb10f2a35ae28f655c747062d631b66171144",
|
|
75
|
+
"tag": "snapshot-nightly"
|
|
76
|
+
},
|
|
69
77
|
"scripts": {
|
|
70
78
|
"dev": "tsdown -w --sourcemap",
|
|
71
79
|
"build:watch": "tsdown -w --sourcemap",
|
|
@@ -77,4 +85,4 @@
|
|
|
77
85
|
"lint": "eslint .",
|
|
78
86
|
"lint:fix": "eslint . --fix"
|
|
79
87
|
}
|
|
80
|
-
}
|
|
88
|
+
}
|