rolldown 1.2.2 → 1.2.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/dist/cli.mjs +14 -10
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +2 -2
- package/dist/experimental-index.d.mts +2 -2
- package/dist/experimental-index.mjs +8 -8
- package/dist/filter-index.d.mts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +4 -4
- package/dist/parallel-plugin-worker.mjs +2 -2
- package/dist/parallel-plugin.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/plugins-index.d.mts +2 -2
- package/dist/plugins-index.mjs +2 -2
- package/dist/shared/binding-CKyeQZen.mjs +673 -0
- package/dist/shared/{bindingify-input-options-BHixd47T.mjs → bindingify-input-options-CMab5gbt.mjs} +6 -10
- package/dist/shared/{constructors-COwFYQna.mjs → constructors-6Zc-JFd7.mjs} +1 -1
- package/dist/shared/{constructors-ALilxAii.d.mts → constructors-XaIbWpwJ.d.mts} +1 -1
- package/dist/shared/{create-bundler-option-LuUKlAT7.mjs → create-bundler-option-BZD-ER-Z.mjs} +3 -3
- package/dist/shared/{define-config-DSMNXceb.d.mts → define-config-DVsXPNaU.d.mts} +0 -4
- package/dist/shared/{error-nLggAzpQ.mjs → error-BzLGqhSQ.mjs} +1 -1
- package/dist/shared/{load-config-cRWJAHTc.mjs → load-config-ChaLPL3M.mjs} +1 -1
- package/dist/shared/{normalize-string-or-regex-Cj-DgIV1.mjs → normalize-string-or-regex-DYjJ67tj.mjs} +1 -1
- package/dist/shared/{parse-C17W7W5g.mjs → parse-CWXBoSKb.mjs} +2 -2
- package/dist/shared/{resolve-tsconfig-CE3HNSOK.mjs → resolve-tsconfig-Bcd82vVT.mjs} +2 -2
- package/dist/shared/{rolldown-D23fYgSS.mjs → rolldown-I5b6h5Km.mjs} +4 -4
- package/dist/shared/{watch-DcgK_L55.mjs → watch-BW4p8Vif.mjs} +5 -5
- package/dist/utils-index.d.mts +1 -1
- package/dist/utils-index.mjs +15 -13
- package/package.json +18 -18
- package/dist/shared/binding-DwUQWZOo.mjs +0 -662
|
@@ -0,0 +1,673 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
|
+
key = keys[i];
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: ((k) => from[k]).bind(null, key),
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
21
|
+
value: mod,
|
|
22
|
+
enumerable: true
|
|
23
|
+
}) : target, mod));
|
|
24
|
+
var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/webcontainer-fallback.cjs
|
|
27
|
+
var require_webcontainer_fallback = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
28
|
+
const fs = __require("node:fs");
|
|
29
|
+
const childProcess = __require("node:child_process");
|
|
30
|
+
const version = JSON.parse(fs.readFileSync(__require.resolve("rolldown/package.json"), "utf-8")).version;
|
|
31
|
+
const baseDir = `/tmp/rolldown-${version}`;
|
|
32
|
+
const bindingEntry = `${baseDir}/node_modules/@rolldown/binding-wasm32-wasi/rolldown-binding.wasi.cjs`;
|
|
33
|
+
if (!fs.existsSync(bindingEntry)) {
|
|
34
|
+
const bindingPkg = `@rolldown/binding-wasm32-wasi@${version}`;
|
|
35
|
+
fs.rmSync(baseDir, {
|
|
36
|
+
recursive: true,
|
|
37
|
+
force: true
|
|
38
|
+
});
|
|
39
|
+
fs.mkdirSync(baseDir, { recursive: true });
|
|
40
|
+
console.log(`[rolldown] Downloading ${bindingPkg} on WebContainer...`);
|
|
41
|
+
childProcess.execFileSync("pnpm", ["i", bindingPkg], {
|
|
42
|
+
cwd: baseDir,
|
|
43
|
+
stdio: "inherit"
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
module.exports = __require(bindingEntry);
|
|
47
|
+
}));
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region src/binding.cjs
|
|
50
|
+
var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
51
|
+
const { readFileSync } = __require("fs");
|
|
52
|
+
let nativeBinding = null;
|
|
53
|
+
const loadErrors = [];
|
|
54
|
+
const isMusl = () => {
|
|
55
|
+
let musl = false;
|
|
56
|
+
if (process.platform === "linux") {
|
|
57
|
+
musl = isMuslFromFilesystem();
|
|
58
|
+
if (musl === null) musl = isMuslFromReport();
|
|
59
|
+
if (musl === null) musl = isMuslFromChildProcess();
|
|
60
|
+
}
|
|
61
|
+
return musl;
|
|
62
|
+
};
|
|
63
|
+
const isFileMusl = (f) => f.includes("libc.musl-") || f.includes("ld-musl-");
|
|
64
|
+
const isMuslFromFilesystem = () => {
|
|
65
|
+
try {
|
|
66
|
+
return readFileSync("/usr/bin/ldd", "utf-8").includes("musl");
|
|
67
|
+
} catch {
|
|
68
|
+
return null;
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
const isMuslFromReport = () => {
|
|
72
|
+
let report = null;
|
|
73
|
+
if (process.report && typeof process.report.getReport === "function") {
|
|
74
|
+
process.report.excludeNetwork = true;
|
|
75
|
+
report = process.report.getReport();
|
|
76
|
+
}
|
|
77
|
+
if (!report) return null;
|
|
78
|
+
if (report.header && report.header.glibcVersionRuntime) return false;
|
|
79
|
+
if (Array.isArray(report.sharedObjects)) {
|
|
80
|
+
if (report.sharedObjects.some(isFileMusl)) return true;
|
|
81
|
+
}
|
|
82
|
+
return false;
|
|
83
|
+
};
|
|
84
|
+
const isMuslFromChildProcess = () => {
|
|
85
|
+
try {
|
|
86
|
+
return __require("child_process").execSync("ldd --version", { encoding: "utf8" }).includes("musl");
|
|
87
|
+
} catch (e) {
|
|
88
|
+
return false;
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
function requireNative() {
|
|
92
|
+
if (process.env.NAPI_RS_NATIVE_LIBRARY_PATH) try {
|
|
93
|
+
return __require(process.env.NAPI_RS_NATIVE_LIBRARY_PATH);
|
|
94
|
+
} catch (err) {
|
|
95
|
+
loadErrors.push(err);
|
|
96
|
+
}
|
|
97
|
+
else if (process.platform === "android") {
|
|
98
|
+
if (process.arch === "arm64") {
|
|
99
|
+
try {
|
|
100
|
+
return __require("./rolldown-binding.android-arm64.node");
|
|
101
|
+
} catch (e) {
|
|
102
|
+
loadErrors.push(e);
|
|
103
|
+
}
|
|
104
|
+
try {
|
|
105
|
+
const binding = __require("@rolldown/binding-android-arm64");
|
|
106
|
+
const bindingPackageVersion = __require("@rolldown/binding-android-arm64/package.json").version;
|
|
107
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
108
|
+
return binding;
|
|
109
|
+
} catch (e) {
|
|
110
|
+
loadErrors.push(e);
|
|
111
|
+
}
|
|
112
|
+
} else if (process.arch === "arm") {
|
|
113
|
+
try {
|
|
114
|
+
return __require("./rolldown-binding.android-arm-eabi.node");
|
|
115
|
+
} catch (e) {
|
|
116
|
+
loadErrors.push(e);
|
|
117
|
+
}
|
|
118
|
+
try {
|
|
119
|
+
const binding = __require("@rolldown/binding-android-arm-eabi");
|
|
120
|
+
const bindingPackageVersion = __require("@rolldown/binding-android-arm-eabi/package.json").version;
|
|
121
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
122
|
+
return binding;
|
|
123
|
+
} catch (e) {
|
|
124
|
+
loadErrors.push(e);
|
|
125
|
+
}
|
|
126
|
+
} else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on Android ${process.arch}`));
|
|
127
|
+
} else if (process.platform === "win32") {
|
|
128
|
+
if (process.arch === "x64") {
|
|
129
|
+
if (process.config && process.config.variables && process.config.variables.shlib_suffix === "dll.a" || process.config && process.config.variables && process.config.variables.node_target_type === "shared_library") {
|
|
130
|
+
try {
|
|
131
|
+
return __require("./rolldown-binding.win32-x64-gnu.node");
|
|
132
|
+
} catch (e) {
|
|
133
|
+
loadErrors.push(e);
|
|
134
|
+
}
|
|
135
|
+
try {
|
|
136
|
+
const binding = __require("@rolldown/binding-win32-x64-gnu");
|
|
137
|
+
const bindingPackageVersion = __require("@rolldown/binding-win32-x64-gnu/package.json").version;
|
|
138
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
139
|
+
return binding;
|
|
140
|
+
} catch (e) {
|
|
141
|
+
loadErrors.push(e);
|
|
142
|
+
}
|
|
143
|
+
} else {
|
|
144
|
+
try {
|
|
145
|
+
return __require("./rolldown-binding.win32-x64-msvc.node");
|
|
146
|
+
} catch (e) {
|
|
147
|
+
loadErrors.push(e);
|
|
148
|
+
}
|
|
149
|
+
try {
|
|
150
|
+
const binding = __require("@rolldown/binding-win32-x64-msvc");
|
|
151
|
+
const bindingPackageVersion = __require("@rolldown/binding-win32-x64-msvc/package.json").version;
|
|
152
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
153
|
+
return binding;
|
|
154
|
+
} catch (e) {
|
|
155
|
+
loadErrors.push(e);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
} else if (process.arch === "ia32") {
|
|
159
|
+
try {
|
|
160
|
+
return __require("./rolldown-binding.win32-ia32-msvc.node");
|
|
161
|
+
} catch (e) {
|
|
162
|
+
loadErrors.push(e);
|
|
163
|
+
}
|
|
164
|
+
try {
|
|
165
|
+
const binding = __require("@rolldown/binding-win32-ia32-msvc");
|
|
166
|
+
const bindingPackageVersion = __require("@rolldown/binding-win32-ia32-msvc/package.json").version;
|
|
167
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
168
|
+
return binding;
|
|
169
|
+
} catch (e) {
|
|
170
|
+
loadErrors.push(e);
|
|
171
|
+
}
|
|
172
|
+
} else if (process.arch === "arm64") {
|
|
173
|
+
try {
|
|
174
|
+
return __require("./rolldown-binding.win32-arm64-msvc.node");
|
|
175
|
+
} catch (e) {
|
|
176
|
+
loadErrors.push(e);
|
|
177
|
+
}
|
|
178
|
+
try {
|
|
179
|
+
const binding = __require("@rolldown/binding-win32-arm64-msvc");
|
|
180
|
+
const bindingPackageVersion = __require("@rolldown/binding-win32-arm64-msvc/package.json").version;
|
|
181
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
182
|
+
return binding;
|
|
183
|
+
} catch (e) {
|
|
184
|
+
loadErrors.push(e);
|
|
185
|
+
}
|
|
186
|
+
} else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on Windows: ${process.arch}`));
|
|
187
|
+
} else if (process.platform === "darwin") {
|
|
188
|
+
try {
|
|
189
|
+
return __require("./rolldown-binding.darwin-universal.node");
|
|
190
|
+
} catch (e) {
|
|
191
|
+
loadErrors.push(e);
|
|
192
|
+
}
|
|
193
|
+
try {
|
|
194
|
+
const binding = __require("@rolldown/binding-darwin-universal");
|
|
195
|
+
const bindingPackageVersion = __require("@rolldown/binding-darwin-universal/package.json").version;
|
|
196
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
197
|
+
return binding;
|
|
198
|
+
} catch (e) {
|
|
199
|
+
loadErrors.push(e);
|
|
200
|
+
}
|
|
201
|
+
if (process.arch === "x64") {
|
|
202
|
+
try {
|
|
203
|
+
return __require("./rolldown-binding.darwin-x64.node");
|
|
204
|
+
} catch (e) {
|
|
205
|
+
loadErrors.push(e);
|
|
206
|
+
}
|
|
207
|
+
try {
|
|
208
|
+
const binding = __require("@rolldown/binding-darwin-x64");
|
|
209
|
+
const bindingPackageVersion = __require("@rolldown/binding-darwin-x64/package.json").version;
|
|
210
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
211
|
+
return binding;
|
|
212
|
+
} catch (e) {
|
|
213
|
+
loadErrors.push(e);
|
|
214
|
+
}
|
|
215
|
+
} else if (process.arch === "arm64") {
|
|
216
|
+
try {
|
|
217
|
+
return __require("./rolldown-binding.darwin-arm64.node");
|
|
218
|
+
} catch (e) {
|
|
219
|
+
loadErrors.push(e);
|
|
220
|
+
}
|
|
221
|
+
try {
|
|
222
|
+
const binding = __require("@rolldown/binding-darwin-arm64");
|
|
223
|
+
const bindingPackageVersion = __require("@rolldown/binding-darwin-arm64/package.json").version;
|
|
224
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
225
|
+
return binding;
|
|
226
|
+
} catch (e) {
|
|
227
|
+
loadErrors.push(e);
|
|
228
|
+
}
|
|
229
|
+
} else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on macOS: ${process.arch}`));
|
|
230
|
+
} else if (process.platform === "freebsd") {
|
|
231
|
+
if (process.arch === "x64") {
|
|
232
|
+
try {
|
|
233
|
+
return __require("./rolldown-binding.freebsd-x64.node");
|
|
234
|
+
} catch (e) {
|
|
235
|
+
loadErrors.push(e);
|
|
236
|
+
}
|
|
237
|
+
try {
|
|
238
|
+
const binding = __require("@rolldown/binding-freebsd-x64");
|
|
239
|
+
const bindingPackageVersion = __require("@rolldown/binding-freebsd-x64/package.json").version;
|
|
240
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
241
|
+
return binding;
|
|
242
|
+
} catch (e) {
|
|
243
|
+
loadErrors.push(e);
|
|
244
|
+
}
|
|
245
|
+
} else if (process.arch === "arm64") {
|
|
246
|
+
try {
|
|
247
|
+
return __require("./rolldown-binding.freebsd-arm64.node");
|
|
248
|
+
} catch (e) {
|
|
249
|
+
loadErrors.push(e);
|
|
250
|
+
}
|
|
251
|
+
try {
|
|
252
|
+
const binding = __require("@rolldown/binding-freebsd-arm64");
|
|
253
|
+
const bindingPackageVersion = __require("@rolldown/binding-freebsd-arm64/package.json").version;
|
|
254
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
255
|
+
return binding;
|
|
256
|
+
} catch (e) {
|
|
257
|
+
loadErrors.push(e);
|
|
258
|
+
}
|
|
259
|
+
} else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on FreeBSD: ${process.arch}`));
|
|
260
|
+
} else if (process.platform === "linux") {
|
|
261
|
+
if (process.arch === "x64") {
|
|
262
|
+
if (isMusl()) {
|
|
263
|
+
try {
|
|
264
|
+
return __require("./rolldown-binding.linux-x64-musl.node");
|
|
265
|
+
} catch (e) {
|
|
266
|
+
loadErrors.push(e);
|
|
267
|
+
}
|
|
268
|
+
try {
|
|
269
|
+
const binding = __require("@rolldown/binding-linux-x64-musl");
|
|
270
|
+
const bindingPackageVersion = __require("@rolldown/binding-linux-x64-musl/package.json").version;
|
|
271
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
272
|
+
return binding;
|
|
273
|
+
} catch (e) {
|
|
274
|
+
loadErrors.push(e);
|
|
275
|
+
}
|
|
276
|
+
} else {
|
|
277
|
+
try {
|
|
278
|
+
return __require("../rolldown-binding.linux-x64-gnu.node");
|
|
279
|
+
} catch (e) {
|
|
280
|
+
loadErrors.push(e);
|
|
281
|
+
}
|
|
282
|
+
try {
|
|
283
|
+
const binding = __require("@rolldown/binding-linux-x64-gnu");
|
|
284
|
+
const bindingPackageVersion = __require("@rolldown/binding-linux-x64-gnu/package.json").version;
|
|
285
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
286
|
+
return binding;
|
|
287
|
+
} catch (e) {
|
|
288
|
+
loadErrors.push(e);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
} else if (process.arch === "arm64") {
|
|
292
|
+
if (isMusl()) {
|
|
293
|
+
try {
|
|
294
|
+
return __require("./rolldown-binding.linux-arm64-musl.node");
|
|
295
|
+
} catch (e) {
|
|
296
|
+
loadErrors.push(e);
|
|
297
|
+
}
|
|
298
|
+
try {
|
|
299
|
+
const binding = __require("@rolldown/binding-linux-arm64-musl");
|
|
300
|
+
const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-musl/package.json").version;
|
|
301
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
302
|
+
return binding;
|
|
303
|
+
} catch (e) {
|
|
304
|
+
loadErrors.push(e);
|
|
305
|
+
}
|
|
306
|
+
} else {
|
|
307
|
+
try {
|
|
308
|
+
return __require("./rolldown-binding.linux-arm64-gnu.node");
|
|
309
|
+
} catch (e) {
|
|
310
|
+
loadErrors.push(e);
|
|
311
|
+
}
|
|
312
|
+
try {
|
|
313
|
+
const binding = __require("@rolldown/binding-linux-arm64-gnu");
|
|
314
|
+
const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-gnu/package.json").version;
|
|
315
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
316
|
+
return binding;
|
|
317
|
+
} catch (e) {
|
|
318
|
+
loadErrors.push(e);
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
} else if (process.arch === "arm") {
|
|
322
|
+
if (isMusl()) {
|
|
323
|
+
try {
|
|
324
|
+
return __require("./rolldown-binding.linux-arm-musleabihf.node");
|
|
325
|
+
} catch (e) {
|
|
326
|
+
loadErrors.push(e);
|
|
327
|
+
}
|
|
328
|
+
try {
|
|
329
|
+
const binding = __require("@rolldown/binding-linux-arm-musleabihf");
|
|
330
|
+
const bindingPackageVersion = __require("@rolldown/binding-linux-arm-musleabihf/package.json").version;
|
|
331
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
332
|
+
return binding;
|
|
333
|
+
} catch (e) {
|
|
334
|
+
loadErrors.push(e);
|
|
335
|
+
}
|
|
336
|
+
} else {
|
|
337
|
+
try {
|
|
338
|
+
return __require("./rolldown-binding.linux-arm-gnueabihf.node");
|
|
339
|
+
} catch (e) {
|
|
340
|
+
loadErrors.push(e);
|
|
341
|
+
}
|
|
342
|
+
try {
|
|
343
|
+
const binding = __require("@rolldown/binding-linux-arm-gnueabihf");
|
|
344
|
+
const bindingPackageVersion = __require("@rolldown/binding-linux-arm-gnueabihf/package.json").version;
|
|
345
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
346
|
+
return binding;
|
|
347
|
+
} catch (e) {
|
|
348
|
+
loadErrors.push(e);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
} else if (process.arch === "loong64") {
|
|
352
|
+
if (isMusl()) {
|
|
353
|
+
try {
|
|
354
|
+
return __require("./rolldown-binding.linux-loong64-musl.node");
|
|
355
|
+
} catch (e) {
|
|
356
|
+
loadErrors.push(e);
|
|
357
|
+
}
|
|
358
|
+
try {
|
|
359
|
+
const binding = __require("@rolldown/binding-linux-loong64-musl");
|
|
360
|
+
const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-musl/package.json").version;
|
|
361
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
362
|
+
return binding;
|
|
363
|
+
} catch (e) {
|
|
364
|
+
loadErrors.push(e);
|
|
365
|
+
}
|
|
366
|
+
} else {
|
|
367
|
+
try {
|
|
368
|
+
return __require("./rolldown-binding.linux-loong64-gnu.node");
|
|
369
|
+
} catch (e) {
|
|
370
|
+
loadErrors.push(e);
|
|
371
|
+
}
|
|
372
|
+
try {
|
|
373
|
+
const binding = __require("@rolldown/binding-linux-loong64-gnu");
|
|
374
|
+
const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-gnu/package.json").version;
|
|
375
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
376
|
+
return binding;
|
|
377
|
+
} catch (e) {
|
|
378
|
+
loadErrors.push(e);
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
} else if (process.arch === "riscv64") {
|
|
382
|
+
if (isMusl()) {
|
|
383
|
+
try {
|
|
384
|
+
return __require("./rolldown-binding.linux-riscv64-musl.node");
|
|
385
|
+
} catch (e) {
|
|
386
|
+
loadErrors.push(e);
|
|
387
|
+
}
|
|
388
|
+
try {
|
|
389
|
+
const binding = __require("@rolldown/binding-linux-riscv64-musl");
|
|
390
|
+
const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-musl/package.json").version;
|
|
391
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
392
|
+
return binding;
|
|
393
|
+
} catch (e) {
|
|
394
|
+
loadErrors.push(e);
|
|
395
|
+
}
|
|
396
|
+
} else {
|
|
397
|
+
try {
|
|
398
|
+
return __require("./rolldown-binding.linux-riscv64-gnu.node");
|
|
399
|
+
} catch (e) {
|
|
400
|
+
loadErrors.push(e);
|
|
401
|
+
}
|
|
402
|
+
try {
|
|
403
|
+
const binding = __require("@rolldown/binding-linux-riscv64-gnu");
|
|
404
|
+
const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-gnu/package.json").version;
|
|
405
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
406
|
+
return binding;
|
|
407
|
+
} catch (e) {
|
|
408
|
+
loadErrors.push(e);
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
} else if (process.arch === "ppc64") {
|
|
412
|
+
try {
|
|
413
|
+
return __require("./rolldown-binding.linux-ppc64-gnu.node");
|
|
414
|
+
} catch (e) {
|
|
415
|
+
loadErrors.push(e);
|
|
416
|
+
}
|
|
417
|
+
try {
|
|
418
|
+
const binding = __require("@rolldown/binding-linux-ppc64-gnu");
|
|
419
|
+
const bindingPackageVersion = __require("@rolldown/binding-linux-ppc64-gnu/package.json").version;
|
|
420
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
421
|
+
return binding;
|
|
422
|
+
} catch (e) {
|
|
423
|
+
loadErrors.push(e);
|
|
424
|
+
}
|
|
425
|
+
} else if (process.arch === "s390x") {
|
|
426
|
+
try {
|
|
427
|
+
return __require("./rolldown-binding.linux-s390x-gnu.node");
|
|
428
|
+
} catch (e) {
|
|
429
|
+
loadErrors.push(e);
|
|
430
|
+
}
|
|
431
|
+
try {
|
|
432
|
+
const binding = __require("@rolldown/binding-linux-s390x-gnu");
|
|
433
|
+
const bindingPackageVersion = __require("@rolldown/binding-linux-s390x-gnu/package.json").version;
|
|
434
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
435
|
+
return binding;
|
|
436
|
+
} catch (e) {
|
|
437
|
+
loadErrors.push(e);
|
|
438
|
+
}
|
|
439
|
+
} else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on Linux: ${process.arch}`));
|
|
440
|
+
} else if (process.platform === "openharmony") {
|
|
441
|
+
if (process.arch === "arm64") {
|
|
442
|
+
try {
|
|
443
|
+
return __require("./rolldown-binding.openharmony-arm64.node");
|
|
444
|
+
} catch (e) {
|
|
445
|
+
loadErrors.push(e);
|
|
446
|
+
}
|
|
447
|
+
try {
|
|
448
|
+
const binding = __require("@rolldown/binding-openharmony-arm64");
|
|
449
|
+
const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm64/package.json").version;
|
|
450
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
451
|
+
return binding;
|
|
452
|
+
} catch (e) {
|
|
453
|
+
loadErrors.push(e);
|
|
454
|
+
}
|
|
455
|
+
} else if (process.arch === "x64") {
|
|
456
|
+
try {
|
|
457
|
+
return __require("./rolldown-binding.openharmony-x64.node");
|
|
458
|
+
} catch (e) {
|
|
459
|
+
loadErrors.push(e);
|
|
460
|
+
}
|
|
461
|
+
try {
|
|
462
|
+
const binding = __require("@rolldown/binding-openharmony-x64");
|
|
463
|
+
const bindingPackageVersion = __require("@rolldown/binding-openharmony-x64/package.json").version;
|
|
464
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
465
|
+
return binding;
|
|
466
|
+
} catch (e) {
|
|
467
|
+
loadErrors.push(e);
|
|
468
|
+
}
|
|
469
|
+
} else if (process.arch === "arm") {
|
|
470
|
+
try {
|
|
471
|
+
return __require("./rolldown-binding.openharmony-arm.node");
|
|
472
|
+
} catch (e) {
|
|
473
|
+
loadErrors.push(e);
|
|
474
|
+
}
|
|
475
|
+
try {
|
|
476
|
+
const binding = __require("@rolldown/binding-openharmony-arm");
|
|
477
|
+
const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm/package.json").version;
|
|
478
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
479
|
+
return binding;
|
|
480
|
+
} catch (e) {
|
|
481
|
+
loadErrors.push(e);
|
|
482
|
+
}
|
|
483
|
+
} else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on OpenHarmony: ${process.arch}`));
|
|
484
|
+
} else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported OS: ${process.platform}, architecture: ${process.arch}`));
|
|
485
|
+
}
|
|
486
|
+
function createLoadErrorChain(errors) {
|
|
487
|
+
return errors.reduce((previous, current) => {
|
|
488
|
+
let message;
|
|
489
|
+
try {
|
|
490
|
+
message = current && typeof current.message === "string" ? current.message : String(current);
|
|
491
|
+
} catch {
|
|
492
|
+
message = "Unknown error";
|
|
493
|
+
}
|
|
494
|
+
const error = new Error(message);
|
|
495
|
+
error.cause = previous;
|
|
496
|
+
return error;
|
|
497
|
+
}, null);
|
|
498
|
+
}
|
|
499
|
+
const __napiWasiFlavors = ["wasm32-wasi"];
|
|
500
|
+
const __napiWasiFlavor = process.env.NAPI_RS_WASI_FLAVOR;
|
|
501
|
+
const __napiWasiFlavorRequested = typeof __napiWasiFlavor === "string" && __napiWasiFlavor.length > 0;
|
|
502
|
+
if (__napiWasiFlavorRequested && __napiWasiFlavors.indexOf(__napiWasiFlavor) === -1) throw new Error("Unsupported WASI flavor \"" + __napiWasiFlavor + "\". Available flavors: " + __napiWasiFlavors.join(", "));
|
|
503
|
+
const forceWasiError = process.env.NAPI_RS_FORCE_WASI === "error";
|
|
504
|
+
const forceWasi = process.env.NAPI_RS_FORCE_WASI === "true" || forceWasiError || __napiWasiFlavorRequested;
|
|
505
|
+
if (!forceWasi) nativeBinding = requireNative();
|
|
506
|
+
if (!nativeBinding || forceWasi) {
|
|
507
|
+
let wasiBinding = null;
|
|
508
|
+
let wasiBindingLoaded = false;
|
|
509
|
+
const wasiBindingErrors = [];
|
|
510
|
+
const __napiWasiResolveCandidate = (specifier, isPackage, localArtifacts) => {
|
|
511
|
+
try {
|
|
512
|
+
__require.resolve(specifier);
|
|
513
|
+
} catch (resolveError) {
|
|
514
|
+
if (!resolveError || resolveError.code !== "MODULE_NOT_FOUND") throw resolveError;
|
|
515
|
+
if (isPackage) {
|
|
516
|
+
try {
|
|
517
|
+
__require.resolve(specifier + "/package.json");
|
|
518
|
+
} catch (packageError) {
|
|
519
|
+
if (packageError && packageError.code === "MODULE_NOT_FOUND") return resolveError;
|
|
520
|
+
throw resolveError;
|
|
521
|
+
}
|
|
522
|
+
throw resolveError;
|
|
523
|
+
}
|
|
524
|
+
return resolveError;
|
|
525
|
+
}
|
|
526
|
+
if (localArtifacts) {
|
|
527
|
+
let artifactError = null;
|
|
528
|
+
for (let i = 0; i < localArtifacts.length; i++) try {
|
|
529
|
+
__require.resolve(localArtifacts[i]);
|
|
530
|
+
return null;
|
|
531
|
+
} catch (resolveError) {
|
|
532
|
+
if (!resolveError || resolveError.code !== "MODULE_NOT_FOUND") throw resolveError;
|
|
533
|
+
artifactError = resolveError;
|
|
534
|
+
}
|
|
535
|
+
return artifactError;
|
|
536
|
+
}
|
|
537
|
+
return null;
|
|
538
|
+
};
|
|
539
|
+
if (!wasiBindingLoaded && (!__napiWasiFlavorRequested || __napiWasiFlavor === "wasm32-wasi")) {
|
|
540
|
+
let candidateError = null;
|
|
541
|
+
let candidateFailed = false;
|
|
542
|
+
try {
|
|
543
|
+
candidateError = __napiWasiResolveCandidate("./rolldown-binding.wasi.cjs", false, ["./rolldown-binding.wasm32-wasi.debug.wasm", "./rolldown-binding.wasm32-wasi.wasm"]);
|
|
544
|
+
candidateFailed = candidateError !== null;
|
|
545
|
+
if (!candidateFailed) {
|
|
546
|
+
wasiBinding = __require("../rolldown-binding.wasi.cjs");
|
|
547
|
+
nativeBinding = wasiBinding;
|
|
548
|
+
wasiBindingLoaded = true;
|
|
549
|
+
}
|
|
550
|
+
} catch (err) {
|
|
551
|
+
candidateError = err;
|
|
552
|
+
candidateFailed = true;
|
|
553
|
+
}
|
|
554
|
+
if (candidateFailed) {
|
|
555
|
+
wasiBindingErrors.push(candidateError);
|
|
556
|
+
loadErrors.push(candidateError);
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
if (!wasiBindingLoaded && (!__napiWasiFlavorRequested || __napiWasiFlavor === "wasm32-wasi")) {
|
|
560
|
+
let candidateError = null;
|
|
561
|
+
let candidateFailed = false;
|
|
562
|
+
try {
|
|
563
|
+
candidateError = __napiWasiResolveCandidate("@rolldown/binding-wasm32-wasi", true, void 0);
|
|
564
|
+
candidateFailed = candidateError !== null;
|
|
565
|
+
if (!candidateFailed) {
|
|
566
|
+
if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
567
|
+
const bindingPackageVersion = __require("@rolldown/binding-wasm32-wasi/package.json").version;
|
|
568
|
+
if (bindingPackageVersion !== "1.2.3") throw new Error(`WASI binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
569
|
+
}
|
|
570
|
+
wasiBinding = __require("@rolldown/binding-wasm32-wasi");
|
|
571
|
+
nativeBinding = wasiBinding;
|
|
572
|
+
wasiBindingLoaded = true;
|
|
573
|
+
}
|
|
574
|
+
} catch (err) {
|
|
575
|
+
candidateError = err;
|
|
576
|
+
candidateFailed = true;
|
|
577
|
+
}
|
|
578
|
+
if (candidateFailed) {
|
|
579
|
+
wasiBindingErrors.push(candidateError);
|
|
580
|
+
loadErrors.push(candidateError);
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
if (!wasiBindingLoaded && forceWasi && !forceWasiError && !__napiWasiFlavorRequested) nativeBinding = requireNative();
|
|
584
|
+
if ((forceWasiError || __napiWasiFlavorRequested) && !wasiBindingLoaded) {
|
|
585
|
+
const error = /* @__PURE__ */ new Error(__napiWasiFlavorRequested ? "WASI binding for flavor \"" + __napiWasiFlavor + "\" not found" : "WASI binding not found and NAPI_RS_FORCE_WASI is set to error");
|
|
586
|
+
error.cause = createLoadErrorChain(wasiBindingErrors);
|
|
587
|
+
throw error;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
if (!nativeBinding && globalThis.process?.versions?.["webcontainer"]) try {
|
|
591
|
+
nativeBinding = require_webcontainer_fallback();
|
|
592
|
+
} catch (err) {
|
|
593
|
+
loadErrors.push(err);
|
|
594
|
+
}
|
|
595
|
+
if (!nativeBinding) {
|
|
596
|
+
if (loadErrors.length > 0) {
|
|
597
|
+
const error = /* @__PURE__ */ new Error("Cannot find native binding. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.");
|
|
598
|
+
error.cause = createLoadErrorChain(loadErrors);
|
|
599
|
+
throw error;
|
|
600
|
+
}
|
|
601
|
+
throw new Error(`Failed to load native binding`);
|
|
602
|
+
}
|
|
603
|
+
module.exports = nativeBinding;
|
|
604
|
+
module.exports.LegalCommentsMode = nativeBinding.LegalCommentsMode;
|
|
605
|
+
module.exports.minify = nativeBinding.minify;
|
|
606
|
+
module.exports.minifySync = nativeBinding.minifySync;
|
|
607
|
+
module.exports.Severity = nativeBinding.Severity;
|
|
608
|
+
module.exports.ParseResult = nativeBinding.ParseResult;
|
|
609
|
+
module.exports.ExportExportNameKind = nativeBinding.ExportExportNameKind;
|
|
610
|
+
module.exports.ExportImportNameKind = nativeBinding.ExportImportNameKind;
|
|
611
|
+
module.exports.ExportLocalNameKind = nativeBinding.ExportLocalNameKind;
|
|
612
|
+
module.exports.ImportNameKind = nativeBinding.ImportNameKind;
|
|
613
|
+
module.exports.parse = nativeBinding.parse;
|
|
614
|
+
module.exports.parseSync = nativeBinding.parseSync;
|
|
615
|
+
module.exports.rawTransferSupported = nativeBinding.rawTransferSupported;
|
|
616
|
+
module.exports.ResolverFactory = nativeBinding.ResolverFactory;
|
|
617
|
+
module.exports.EnforceExtension = nativeBinding.EnforceExtension;
|
|
618
|
+
module.exports.ModuleType = nativeBinding.ModuleType;
|
|
619
|
+
module.exports.sync = nativeBinding.sync;
|
|
620
|
+
module.exports.HelperMode = nativeBinding.HelperMode;
|
|
621
|
+
module.exports.isolatedDeclaration = nativeBinding.isolatedDeclaration;
|
|
622
|
+
module.exports.isolatedDeclarationSync = nativeBinding.isolatedDeclarationSync;
|
|
623
|
+
module.exports.moduleRunnerTransform = nativeBinding.moduleRunnerTransform;
|
|
624
|
+
module.exports.moduleRunnerTransformSync = nativeBinding.moduleRunnerTransformSync;
|
|
625
|
+
module.exports.transform = nativeBinding.transform;
|
|
626
|
+
module.exports.transformSync = nativeBinding.transformSync;
|
|
627
|
+
module.exports.BindingBundleEndEventData = nativeBinding.BindingBundleEndEventData;
|
|
628
|
+
module.exports.BindingBundleErrorEventData = nativeBinding.BindingBundleErrorEventData;
|
|
629
|
+
module.exports.BindingBundler = nativeBinding.BindingBundler;
|
|
630
|
+
module.exports.BindingCallableBuiltinPlugin = nativeBinding.BindingCallableBuiltinPlugin;
|
|
631
|
+
module.exports.BindingChunkingContext = nativeBinding.BindingChunkingContext;
|
|
632
|
+
module.exports.BindingDecodedMap = nativeBinding.BindingDecodedMap;
|
|
633
|
+
module.exports.BindingDevEngine = nativeBinding.BindingDevEngine;
|
|
634
|
+
module.exports.BindingLoadPluginContext = nativeBinding.BindingLoadPluginContext;
|
|
635
|
+
module.exports.BindingMagicString = nativeBinding.BindingMagicString;
|
|
636
|
+
module.exports.BindingModuleInfo = nativeBinding.BindingModuleInfo;
|
|
637
|
+
module.exports.BindingNormalizedOptions = nativeBinding.BindingNormalizedOptions;
|
|
638
|
+
module.exports.BindingOutputAsset = nativeBinding.BindingOutputAsset;
|
|
639
|
+
module.exports.BindingOutputChunk = nativeBinding.BindingOutputChunk;
|
|
640
|
+
module.exports.BindingPluginContext = nativeBinding.BindingPluginContext;
|
|
641
|
+
module.exports.BindingRenderedChunk = nativeBinding.BindingRenderedChunk;
|
|
642
|
+
module.exports.BindingRenderedChunkMeta = nativeBinding.BindingRenderedChunkMeta;
|
|
643
|
+
module.exports.BindingRenderedModule = nativeBinding.BindingRenderedModule;
|
|
644
|
+
module.exports.BindingSourceMap = nativeBinding.BindingSourceMap;
|
|
645
|
+
module.exports.BindingTransformPluginContext = nativeBinding.BindingTransformPluginContext;
|
|
646
|
+
module.exports.BindingWatcher = nativeBinding.BindingWatcher;
|
|
647
|
+
module.exports.BindingWatcherBundler = nativeBinding.BindingWatcherBundler;
|
|
648
|
+
module.exports.BindingWatcherChangeData = nativeBinding.BindingWatcherChangeData;
|
|
649
|
+
module.exports.BindingWatcherEvent = nativeBinding.BindingWatcherEvent;
|
|
650
|
+
module.exports.ParallelJsPluginRegistry = nativeBinding.ParallelJsPluginRegistry;
|
|
651
|
+
module.exports.TraceSubscriberGuard = nativeBinding.TraceSubscriberGuard;
|
|
652
|
+
module.exports.TsconfigCache = nativeBinding.TsconfigCache;
|
|
653
|
+
module.exports.BindingAttachDebugInfo = nativeBinding.BindingAttachDebugInfo;
|
|
654
|
+
module.exports.BindingBuiltinPluginName = nativeBinding.BindingBuiltinPluginName;
|
|
655
|
+
module.exports.BindingChunkModuleOrderBy = nativeBinding.BindingChunkModuleOrderBy;
|
|
656
|
+
module.exports.BindingErrorStage = nativeBinding.BindingErrorStage;
|
|
657
|
+
module.exports.BindingLogLevel = nativeBinding.BindingLogLevel;
|
|
658
|
+
module.exports.BindingPluginOrder = nativeBinding.BindingPluginOrder;
|
|
659
|
+
module.exports.BindingPropertyReadSideEffects = nativeBinding.BindingPropertyReadSideEffects;
|
|
660
|
+
module.exports.BindingPropertyWriteSideEffects = nativeBinding.BindingPropertyWriteSideEffects;
|
|
661
|
+
module.exports.BindingRebuildStrategy = nativeBinding.BindingRebuildStrategy;
|
|
662
|
+
module.exports.collapseSourcemaps = nativeBinding.collapseSourcemaps;
|
|
663
|
+
module.exports.enhancedTransform = nativeBinding.enhancedTransform;
|
|
664
|
+
module.exports.enhancedTransformSync = nativeBinding.enhancedTransformSync;
|
|
665
|
+
module.exports.FilterTokenKind = nativeBinding.FilterTokenKind;
|
|
666
|
+
module.exports.initTraceSubscriber = nativeBinding.initTraceSubscriber;
|
|
667
|
+
module.exports.registerPlugins = nativeBinding.registerPlugins;
|
|
668
|
+
module.exports.resolveTsconfig = nativeBinding.resolveTsconfig;
|
|
669
|
+
module.exports.shutdownAsyncRuntime = nativeBinding.shutdownAsyncRuntime;
|
|
670
|
+
module.exports.startAsyncRuntime = nativeBinding.startAsyncRuntime;
|
|
671
|
+
}));
|
|
672
|
+
//#endregion
|
|
673
|
+
export { __toESM as n, require_binding as t };
|