rolldown 1.0.0-beta.31-commit.832324a → 1.0.0-beta.33
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.cjs +5 -5
- package/dist/cli.d.cts +1 -1
- package/dist/cli.d.mts +1 -1
- package/dist/cli.mjs +7 -6
- package/dist/config.cjs +3 -3
- package/dist/config.d.cts +2 -2
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +3 -3
- package/dist/experimental-index.cjs +2 -2
- package/dist/experimental-index.d.cts +2 -2
- package/dist/experimental-index.d.mts +2 -2
- package/dist/experimental-index.mjs +2 -2
- package/dist/filter-index.d.cts +2 -2
- package/dist/filter-index.d.mts +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/parallel-plugin-worker.cjs +2 -2
- package/dist/parallel-plugin-worker.d.cts +1 -1
- package/dist/parallel-plugin-worker.d.mts +1 -1
- package/dist/parallel-plugin-worker.mjs +4 -3
- package/dist/parallel-plugin.d.cts +2 -2
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.cjs +1 -1
- package/dist/parse-ast-index.d.cts +1 -1
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/shared/{binding-BIqlUgrm.d.cts → binding-CFhvYkVn.d.mts} +4 -3
- package/dist/shared/{binding-COE5UL-B.d.mts → binding-DQk9TN_A.d.cts} +4 -3
- package/dist/shared/{define-config-DFC0Nu7H.d.cts → define-config-B3QOs3Kt.d.cts} +7 -1
- package/dist/shared/{define-config-DfOVOsx6.d.mts → define-config-DtlZ1GSS.d.mts} +7 -1
- package/dist/shared/{load-config-C2ByPkRr.cjs → load-config-B-y3XROZ.cjs} +1 -1
- package/dist/shared/{load-config-BsvtI-HD.mjs → load-config-C00QU0Nl.mjs} +1 -1
- package/dist/shared/{parse-ast-index-B5ThufKy.mjs → parse-ast-index-BsbuAWqn.mjs} +24 -24
- package/dist/shared/{parse-ast-index-DSyjeX7n.cjs → parse-ast-index-DBzcfyxO.cjs} +24 -24
- package/dist/shared/{src-CJyr8NNX.mjs → src-D1dc6nJr.mjs} +82 -77
- package/dist/shared/{src-aI0ysjSj.cjs → src-DZTBSVJk.cjs} +82 -77
- package/package.json +22 -22
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_parse_ast_index = require('./parse-ast-index-
|
|
2
|
+
const require_parse_ast_index = require('./parse-ast-index-DBzcfyxO.cjs');
|
|
3
3
|
const require_misc = require('./misc-DksvspN4.cjs');
|
|
4
4
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
5
5
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
@@ -10,7 +10,7 @@ const node_os = require_chunk.__toESM(require("node:os"));
|
|
|
10
10
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
11
11
|
|
|
12
12
|
//#region package.json
|
|
13
|
-
var version = "1.0.0-beta.
|
|
13
|
+
var version = "1.0.0-beta.33";
|
|
14
14
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
15
15
|
|
|
16
16
|
//#endregion
|
|
@@ -32,9 +32,9 @@ function makeBuiltinPluginCallable(plugin) {
|
|
|
32
32
|
for (const key in callablePlugin) wrappedPlugin[key] = async function(...args$1) {
|
|
33
33
|
try {
|
|
34
34
|
return await callablePlugin[key](...args$1);
|
|
35
|
-
} catch (e) {
|
|
36
|
-
if (e instanceof Error && !e.stack?.includes("at ")) Error.captureStackTrace(e, wrappedPlugin[key]);
|
|
37
|
-
return require_parse_ast_index.error(require_parse_ast_index.logPluginError(e, plugin.name, {
|
|
35
|
+
} catch (e$1) {
|
|
36
|
+
if (e$1 instanceof Error && !e$1.stack?.includes("at ")) Error.captureStackTrace(e$1, wrappedPlugin[key]);
|
|
37
|
+
return require_parse_ast_index.error(require_parse_ast_index.logPluginError(e$1, plugin.name, {
|
|
38
38
|
hook: key,
|
|
39
39
|
id: key === "transform" ? args$1[2] : void 0
|
|
40
40
|
}));
|
|
@@ -353,8 +353,8 @@ var MinimalPluginContextImpl = class {
|
|
|
353
353
|
watchMode
|
|
354
354
|
};
|
|
355
355
|
}
|
|
356
|
-
error(e) {
|
|
357
|
-
return require_parse_ast_index.error(require_parse_ast_index.logPluginError(normalizeLog(e), this.pluginName, { hook: this.hookName }));
|
|
356
|
+
error(e$1) {
|
|
357
|
+
return require_parse_ast_index.error(require_parse_ast_index.logPluginError(normalizeLog(e$1), this.pluginName, { hook: this.hookName }));
|
|
358
358
|
}
|
|
359
359
|
};
|
|
360
360
|
|
|
@@ -2211,7 +2211,7 @@ function validateOption(key, options) {
|
|
|
2211
2211
|
const issuePaths = issue.path.map((path$2) => path$2.key);
|
|
2212
2212
|
let issueMsg = issue.message;
|
|
2213
2213
|
if (issue.type === "union") {
|
|
2214
|
-
const subIssue = issue.issues?.find((i
|
|
2214
|
+
const subIssue = issue.issues?.find((i) => !(i.type !== issue.received && i.input === issue.input));
|
|
2215
2215
|
if (subIssue) {
|
|
2216
2216
|
if (subIssue.path) issuePaths.push(subIssue.path.map((path$2) => path$2.key));
|
|
2217
2217
|
issueMsg = subIssue.message;
|
|
@@ -2254,19 +2254,19 @@ function bindingifySourcemap$1(map) {
|
|
|
2254
2254
|
//#endregion
|
|
2255
2255
|
//#region src/utils/error.ts
|
|
2256
2256
|
function normalizeErrors(rawErrors) {
|
|
2257
|
-
const errors = rawErrors.map((e) => e instanceof Error ? e : Object.assign(/* @__PURE__ */ new Error(), {
|
|
2258
|
-
kind: e.kind,
|
|
2259
|
-
message: e.message,
|
|
2257
|
+
const errors = rawErrors.map((e$1) => e$1 instanceof Error ? e$1 : Object.assign(/* @__PURE__ */ new Error(), {
|
|
2258
|
+
kind: e$1.kind,
|
|
2259
|
+
message: e$1.message,
|
|
2260
2260
|
stack: void 0
|
|
2261
2261
|
}));
|
|
2262
2262
|
let summary = `Build failed with ${errors.length} error${errors.length < 2 ? "" : "s"}:\n`;
|
|
2263
|
-
for (let i
|
|
2263
|
+
for (let i = 0; i < errors.length; i++) {
|
|
2264
2264
|
summary += "\n";
|
|
2265
|
-
if (i
|
|
2265
|
+
if (i >= 5) {
|
|
2266
2266
|
summary += "...";
|
|
2267
2267
|
break;
|
|
2268
2268
|
}
|
|
2269
|
-
summary += getErrorMessage(errors[i
|
|
2269
|
+
summary += getErrorMessage(errors[i]);
|
|
2270
2270
|
}
|
|
2271
2271
|
const wrapper = new Error(summary);
|
|
2272
2272
|
Object.defineProperty(wrapper, "errors", {
|
|
@@ -2281,20 +2281,20 @@ function normalizeErrors(rawErrors) {
|
|
|
2281
2281
|
});
|
|
2282
2282
|
return wrapper;
|
|
2283
2283
|
}
|
|
2284
|
-
function getErrorMessage(e) {
|
|
2285
|
-
if (Object.hasOwn(e, "kind")) return e.message;
|
|
2284
|
+
function getErrorMessage(e$1) {
|
|
2285
|
+
if (Object.hasOwn(e$1, "kind")) return e$1.message;
|
|
2286
2286
|
let s = "";
|
|
2287
|
-
if (e.plugin) s += `[plugin ${e.plugin}]`;
|
|
2288
|
-
const id = e.id ?? e.loc?.file;
|
|
2287
|
+
if (e$1.plugin) s += `[plugin ${e$1.plugin}]`;
|
|
2288
|
+
const id = e$1.id ?? e$1.loc?.file;
|
|
2289
2289
|
if (id) {
|
|
2290
2290
|
s += " " + id;
|
|
2291
|
-
if (e.loc) s += `:${e.loc.line}:${e.loc.column}`;
|
|
2291
|
+
if (e$1.loc) s += `:${e$1.loc.line}:${e$1.loc.column}`;
|
|
2292
2292
|
}
|
|
2293
2293
|
if (s) s += "\n";
|
|
2294
|
-
const message = `${e.name ?? "Error"}: ${e.message}`;
|
|
2294
|
+
const message = `${e$1.name ?? "Error"}: ${e$1.message}`;
|
|
2295
2295
|
s += message;
|
|
2296
|
-
if (e.frame) s = joinNewLine(s, e.frame);
|
|
2297
|
-
if (e.stack) s = joinNewLine(s, e.stack.replace(message, ""));
|
|
2296
|
+
if (e$1.frame) s = joinNewLine(s, e$1.frame);
|
|
2297
|
+
if (e$1.stack) s = joinNewLine(s, e$1.stack.replace(message, ""));
|
|
2298
2298
|
return s;
|
|
2299
2299
|
}
|
|
2300
2300
|
function joinNewLine(s1, s2) {
|
|
@@ -2338,33 +2338,33 @@ function normalizeTransformHookSourcemap(id, originalCode, rawMap) {
|
|
|
2338
2338
|
}
|
|
2339
2339
|
|
|
2340
2340
|
//#endregion
|
|
2341
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2342
|
-
function
|
|
2343
|
-
let
|
|
2344
|
-
return
|
|
2345
|
-
lazy:
|
|
2346
|
-
lazyArgs:
|
|
2341
|
+
//#region ../../node_modules/.pnpm/remeda@2.30.0/node_modules/remeda/dist/lazyDataLastImpl-BDhrIOwR.js
|
|
2342
|
+
function e(e$1, t$2, n$1) {
|
|
2343
|
+
let r = (n$2) => e$1(n$2, ...t$2);
|
|
2344
|
+
return n$1 === void 0 ? r : Object.assign(r, {
|
|
2345
|
+
lazy: n$1,
|
|
2346
|
+
lazyArgs: t$2
|
|
2347
2347
|
});
|
|
2348
2348
|
}
|
|
2349
2349
|
|
|
2350
2350
|
//#endregion
|
|
2351
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2352
|
-
function
|
|
2353
|
-
let
|
|
2354
|
-
if (
|
|
2355
|
-
if (
|
|
2356
|
-
throw
|
|
2351
|
+
//#region ../../node_modules/.pnpm/remeda@2.30.0/node_modules/remeda/dist/purry-DH9cw9sy.js
|
|
2352
|
+
function t(t$2, n$1, r) {
|
|
2353
|
+
let i = t$2.length - n$1.length;
|
|
2354
|
+
if (i === 0) return t$2(...n$1);
|
|
2355
|
+
if (i === 1) return e(t$2, n$1, r);
|
|
2356
|
+
throw Error(`Wrong number of arguments`);
|
|
2357
2357
|
}
|
|
2358
2358
|
|
|
2359
2359
|
//#endregion
|
|
2360
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2361
|
-
function
|
|
2362
|
-
return
|
|
2363
|
-
}
|
|
2364
|
-
|
|
2365
|
-
let
|
|
2366
|
-
for (let [
|
|
2367
|
-
return
|
|
2360
|
+
//#region ../../node_modules/.pnpm/remeda@2.30.0/node_modules/remeda/dist/partition-BJYkp-a7.js
|
|
2361
|
+
function t$1(...t$2) {
|
|
2362
|
+
return t(n, t$2);
|
|
2363
|
+
}
|
|
2364
|
+
const n = (e$1, t$2) => {
|
|
2365
|
+
let n$1 = [[], []];
|
|
2366
|
+
for (let [r, i] of e$1.entries()) t$2(i, r, e$1) ? n$1[0].push(i) : n$1[1].push(i);
|
|
2367
|
+
return n$1;
|
|
2368
2368
|
};
|
|
2369
2369
|
|
|
2370
2370
|
//#endregion
|
|
@@ -2389,8 +2389,8 @@ function transformFilterMatcherToFilterExprs(filterOption) {
|
|
|
2389
2389
|
let idExcludes = [];
|
|
2390
2390
|
let codeIncludes = [];
|
|
2391
2391
|
let codeExcludes = [];
|
|
2392
|
-
if (id) [idIncludes, idExcludes] =
|
|
2393
|
-
if (code) [codeIncludes, codeExcludes] =
|
|
2392
|
+
if (id) [idIncludes, idExcludes] = t$1(generalHookFilterMatcherToFilterExprs(id, "id") ?? [], (m) => m.kind === "include");
|
|
2393
|
+
if (code) [codeIncludes, codeExcludes] = t$1(generalHookFilterMatcherToFilterExprs(code, "code") ?? [], (m) => m.kind === "include");
|
|
2394
2394
|
ret.push(...idExcludes);
|
|
2395
2395
|
ret.push(...codeExcludes);
|
|
2396
2396
|
let andExprList = [];
|
|
@@ -2418,7 +2418,7 @@ function bindingifyFilterExprImpl(expr, list) {
|
|
|
2418
2418
|
switch (expr.kind) {
|
|
2419
2419
|
case "and": {
|
|
2420
2420
|
let args$1 = expr.args;
|
|
2421
|
-
for (let i
|
|
2421
|
+
for (let i = args$1.length - 1; i >= 0; i--) bindingifyFilterExprImpl(args$1[i], list);
|
|
2422
2422
|
list.push({
|
|
2423
2423
|
kind: "And",
|
|
2424
2424
|
payload: args$1.length
|
|
@@ -2427,7 +2427,7 @@ function bindingifyFilterExprImpl(expr, list) {
|
|
|
2427
2427
|
}
|
|
2428
2428
|
case "or": {
|
|
2429
2429
|
let args$1 = expr.args;
|
|
2430
|
-
for (let i
|
|
2430
|
+
for (let i = args$1.length - 1; i >= 0; i--) bindingifyFilterExprImpl(args$1[i], list);
|
|
2431
2431
|
list.push({
|
|
2432
2432
|
kind: "Or",
|
|
2433
2433
|
payload: args$1.length
|
|
@@ -2577,10 +2577,10 @@ var PluginContextImpl = class extends MinimalPluginContextImpl {
|
|
|
2577
2577
|
data.loadModulePromiseMap.set(id, promise$1);
|
|
2578
2578
|
try {
|
|
2579
2579
|
await context.load(id, options.moduleSideEffects ?? void 0);
|
|
2580
|
-
} catch (e) {
|
|
2580
|
+
} catch (e$1) {
|
|
2581
2581
|
data.loadModulePromiseMap.delete(id);
|
|
2582
2582
|
data.loadModulePromiseResolveFnMap.delete(id);
|
|
2583
|
-
throw e;
|
|
2583
|
+
throw e$1;
|
|
2584
2584
|
}
|
|
2585
2585
|
return promise$1;
|
|
2586
2586
|
}
|
|
@@ -2667,12 +2667,12 @@ var TransformPluginContextImpl = class extends PluginContextImpl {
|
|
|
2667
2667
|
this.warn = getLogHandler$1(this.warn);
|
|
2668
2668
|
this.info = getLogHandler$1(this.info);
|
|
2669
2669
|
}
|
|
2670
|
-
error(e, pos) {
|
|
2671
|
-
if (typeof e === "string") e = { message: e };
|
|
2672
|
-
if (pos) require_parse_ast_index.augmentCodeLocation(e, pos, this.moduleSource, this.moduleId);
|
|
2673
|
-
e.id = this.moduleId;
|
|
2674
|
-
e.hook = "transform";
|
|
2675
|
-
return require_parse_ast_index.error(require_parse_ast_index.logPluginError(normalizeLog(e), this.pluginName));
|
|
2670
|
+
error(e$1, pos) {
|
|
2671
|
+
if (typeof e$1 === "string") e$1 = { message: e$1 };
|
|
2672
|
+
if (pos) require_parse_ast_index.augmentCodeLocation(e$1, pos, this.moduleSource, this.moduleId);
|
|
2673
|
+
e$1.id = this.moduleId;
|
|
2674
|
+
e$1.hook = "transform";
|
|
2675
|
+
return require_parse_ast_index.error(require_parse_ast_index.logPluginError(normalizeLog(e$1), this.pluginName));
|
|
2676
2676
|
}
|
|
2677
2677
|
getCombinedSourcemap() {
|
|
2678
2678
|
return JSON.parse(this.inner.getCombinedSourcemap());
|
|
@@ -2898,9 +2898,9 @@ function transformRenderedChunk(chunk) {
|
|
|
2898
2898
|
}
|
|
2899
2899
|
function transformChunkModules(modules) {
|
|
2900
2900
|
const result = {};
|
|
2901
|
-
for (let i
|
|
2902
|
-
let key = modules.keys[i
|
|
2903
|
-
const mod = modules.values[i
|
|
2901
|
+
for (let i = 0; i < modules.values.length; i++) {
|
|
2902
|
+
let key = modules.keys[i];
|
|
2903
|
+
const mod = modules.values[i];
|
|
2904
2904
|
result[key] = transformToRenderedModule(mod);
|
|
2905
2905
|
}
|
|
2906
2906
|
return result;
|
|
@@ -3409,8 +3409,8 @@ function wrapHandlers(plugin) {
|
|
|
3409
3409
|
if (handler) plugin[hookName] = async (...args$1) => {
|
|
3410
3410
|
try {
|
|
3411
3411
|
return await handler(...args$1);
|
|
3412
|
-
} catch (e) {
|
|
3413
|
-
return require_parse_ast_index.error(require_parse_ast_index.logPluginError(e, plugin.name, {
|
|
3412
|
+
} catch (e$1) {
|
|
3413
|
+
return require_parse_ast_index.error(require_parse_ast_index.logPluginError(e$1, plugin.name, {
|
|
3414
3414
|
hook: hookName,
|
|
3415
3415
|
id: hookName === "transform" ? args$1[2] : void 0
|
|
3416
3416
|
}));
|
|
@@ -3440,6 +3440,9 @@ var NormalizedInputOptionsImpl = class {
|
|
|
3440
3440
|
get platform() {
|
|
3441
3441
|
return this.inner.platform;
|
|
3442
3442
|
}
|
|
3443
|
+
get context() {
|
|
3444
|
+
return this.inner.context;
|
|
3445
|
+
}
|
|
3443
3446
|
};
|
|
3444
3447
|
|
|
3445
3448
|
//#endregion
|
|
@@ -4071,7 +4074,7 @@ async function initializeParallelPlugins(plugins) {
|
|
|
4071
4074
|
};
|
|
4072
4075
|
}
|
|
4073
4076
|
function initializeWorkers(registryId, count, pluginInfos) {
|
|
4074
|
-
return Promise.all(Array.from({ length: count }, (_, i
|
|
4077
|
+
return Promise.all(Array.from({ length: count }, (_, i) => initializeWorker(registryId, pluginInfos, i)));
|
|
4075
4078
|
}
|
|
4076
4079
|
async function initializeWorker(registryId, pluginInfos, threadNumber) {
|
|
4077
4080
|
const urlString = (void 0)("#parallel-plugin-worker");
|
|
@@ -4091,9 +4094,9 @@ async function initializeWorker(registryId, pluginInfos, threadNumber) {
|
|
|
4091
4094
|
});
|
|
4092
4095
|
});
|
|
4093
4096
|
return worker;
|
|
4094
|
-
} catch (e) {
|
|
4097
|
+
} catch (e$1) {
|
|
4095
4098
|
worker?.terminate();
|
|
4096
|
-
throw e;
|
|
4099
|
+
throw e$1;
|
|
4097
4100
|
}
|
|
4098
4101
|
}
|
|
4099
4102
|
const availableParallelism = () => {
|
|
@@ -4109,12 +4112,12 @@ const availableParallelism = () => {
|
|
|
4109
4112
|
|
|
4110
4113
|
//#endregion
|
|
4111
4114
|
//#region src/utils/create-bundler-option.ts
|
|
4112
|
-
async function createBundlerOptions(inputOptions, outputOptions, watchMode
|
|
4115
|
+
async function createBundlerOptions(inputOptions, outputOptions, watchMode) {
|
|
4113
4116
|
const inputPlugins = await normalizePluginOption(inputOptions.plugins);
|
|
4114
4117
|
const outputPlugins = await normalizePluginOption(outputOptions.plugins);
|
|
4115
4118
|
const logLevel = inputOptions.logLevel || LOG_LEVEL_INFO;
|
|
4116
4119
|
const onLog = getLogger(getObjectPlugins(inputPlugins), getOnLog(inputOptions, logLevel), logLevel, watchMode);
|
|
4117
|
-
|
|
4120
|
+
outputOptions = PluginDriver.callOutputOptionsHook([...inputPlugins, ...outputPlugins], outputOptions, onLog, logLevel, watchMode);
|
|
4118
4121
|
const normalizedOutputPlugins = await normalizePluginOption(outputOptions.plugins);
|
|
4119
4122
|
let plugins = [
|
|
4120
4123
|
...BUILTIN_PLUGINS,
|
|
@@ -4135,17 +4138,17 @@ async function createBundlerOptions(inputOptions, outputOptions, watchMode, isCl
|
|
|
4135
4138
|
onLog,
|
|
4136
4139
|
stopWorkers: parallelPluginInitResult?.stopWorkers
|
|
4137
4140
|
};
|
|
4138
|
-
} catch (e) {
|
|
4141
|
+
} catch (e$1) {
|
|
4139
4142
|
await parallelPluginInitResult?.stopWorkers();
|
|
4140
|
-
throw e;
|
|
4143
|
+
throw e$1;
|
|
4141
4144
|
}
|
|
4142
4145
|
}
|
|
4143
4146
|
|
|
4144
4147
|
//#endregion
|
|
4145
4148
|
//#region src/utils/create-bundler.ts
|
|
4146
4149
|
let asyncRuntimeShutdown = false;
|
|
4147
|
-
async function createBundlerImpl(bundler, inputOptions, outputOptions
|
|
4148
|
-
const option = await createBundlerOptions(inputOptions, outputOptions, false
|
|
4150
|
+
async function createBundlerImpl(bundler, inputOptions, outputOptions) {
|
|
4151
|
+
const option = await createBundlerOptions(inputOptions, outputOptions, false);
|
|
4149
4152
|
if (asyncRuntimeShutdown) require_parse_ast_index.startAsyncRuntime();
|
|
4150
4153
|
try {
|
|
4151
4154
|
return {
|
|
@@ -4156,9 +4159,9 @@ async function createBundlerImpl(bundler, inputOptions, outputOptions, isClose)
|
|
|
4156
4159
|
asyncRuntimeShutdown = true;
|
|
4157
4160
|
}
|
|
4158
4161
|
};
|
|
4159
|
-
} catch (e) {
|
|
4162
|
+
} catch (e$1) {
|
|
4160
4163
|
await option.stopWorkers?.();
|
|
4161
|
-
throw e;
|
|
4164
|
+
throw e$1;
|
|
4162
4165
|
}
|
|
4163
4166
|
}
|
|
4164
4167
|
|
|
@@ -4186,11 +4189,11 @@ var RolldownBuild = class {
|
|
|
4186
4189
|
this.#bundler = new require_parse_ast_index.BindingBundler();
|
|
4187
4190
|
}
|
|
4188
4191
|
get closed() {
|
|
4189
|
-
return this.#bundlerImpl?.impl.closed ??
|
|
4192
|
+
return this.#bundlerImpl?.impl.closed ?? true;
|
|
4190
4193
|
}
|
|
4191
|
-
async #getBundlerWithStopWorker(outputOptions
|
|
4194
|
+
async #getBundlerWithStopWorker(outputOptions) {
|
|
4192
4195
|
if (this.#bundlerImpl) await this.#bundlerImpl.stopWorkers?.();
|
|
4193
|
-
return this.#bundlerImpl = await createBundlerImpl(this.#bundler, this.#inputOptions, outputOptions
|
|
4196
|
+
return this.#bundlerImpl = await createBundlerImpl(this.#bundler, this.#inputOptions, outputOptions);
|
|
4194
4197
|
}
|
|
4195
4198
|
async generate(outputOptions = {}) {
|
|
4196
4199
|
validateOption("output", outputOptions);
|
|
@@ -4205,10 +4208,12 @@ var RolldownBuild = class {
|
|
|
4205
4208
|
return transformToRollupOutput(output);
|
|
4206
4209
|
}
|
|
4207
4210
|
async close() {
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4211
|
+
if (this.#bundlerImpl) {
|
|
4212
|
+
await this.#bundlerImpl.stopWorkers?.();
|
|
4213
|
+
await this.#bundlerImpl.impl.close();
|
|
4214
|
+
this.#bundlerImpl.shutdown();
|
|
4215
|
+
this.#bundlerImpl = void 0;
|
|
4216
|
+
}
|
|
4212
4217
|
}
|
|
4213
4218
|
async [Symbol.asyncDispose]() {
|
|
4214
4219
|
await this.close();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.33",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://rolldown.rs/",
|
|
@@ -92,15 +92,15 @@
|
|
|
92
92
|
"dtsHeader": "type MaybePromise<T> = T | Promise<T>\ntype Nullable<T> = T | null | undefined\ntype VoidNullable<T = void> = T | null | undefined | void\nexport type BindingStringOrRegex = string | RegExp\n\n"
|
|
93
93
|
},
|
|
94
94
|
"dependencies": {
|
|
95
|
-
"@oxc-project/runtime": "=0.
|
|
96
|
-
"@oxc-project/types": "=0.
|
|
95
|
+
"@oxc-project/runtime": "=0.82.2",
|
|
96
|
+
"@oxc-project/types": "=0.82.2",
|
|
97
97
|
"ansis": "^4.0.0",
|
|
98
|
-
"@rolldown/pluginutils": "1.0.0-beta.
|
|
98
|
+
"@rolldown/pluginutils": "1.0.0-beta.33"
|
|
99
99
|
},
|
|
100
100
|
"devDependencies": {
|
|
101
101
|
"@napi-rs/cli": "^3.1.2",
|
|
102
102
|
"@napi-rs/wasm-runtime": "^1.0.0",
|
|
103
|
-
"@oxc-node/cli": "^0.0.
|
|
103
|
+
"@oxc-node/cli": "^0.0.32",
|
|
104
104
|
"@rollup/plugin-json": "^6.1.0",
|
|
105
105
|
"@valibot/to-json-schema": "1.3.0",
|
|
106
106
|
"buble": "^0.20.0",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"emnapi": "^1.2.0",
|
|
109
109
|
"execa": "^9.2.0",
|
|
110
110
|
"glob": "^11.0.0",
|
|
111
|
-
"oxc-parser": "=0.
|
|
111
|
+
"oxc-parser": "=0.82.2",
|
|
112
112
|
"pathe": "^2.0.3",
|
|
113
113
|
"remeda": "^2.10.0",
|
|
114
114
|
"rolldown-plugin-dts": "^0.15.0",
|
|
@@ -119,24 +119,24 @@
|
|
|
119
119
|
"typedoc": "^0.28.0",
|
|
120
120
|
"typescript": "^5.7.3",
|
|
121
121
|
"valibot": "1.1.0",
|
|
122
|
-
"
|
|
123
|
-
"rolldown": "
|
|
122
|
+
"rolldown": "1.0.0-beta.33",
|
|
123
|
+
"@rolldown/testing": "0.0.1"
|
|
124
124
|
},
|
|
125
125
|
"optionalDependencies": {
|
|
126
|
-
"@rolldown/binding-darwin-x64": "1.0.0-beta.
|
|
127
|
-
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.
|
|
128
|
-
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.
|
|
129
|
-
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.
|
|
130
|
-
"@rolldown/binding-freebsd-x64": "1.0.0-beta.
|
|
131
|
-
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.
|
|
132
|
-
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.
|
|
133
|
-
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.
|
|
134
|
-
"@rolldown/binding-darwin-arm64": "1.0.0-beta.
|
|
135
|
-
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.
|
|
136
|
-
"@rolldown/binding-openharmony-arm64": "1.0.0-beta.
|
|
137
|
-
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.
|
|
138
|
-
"@rolldown/binding-android-arm64": "1.0.0-beta.
|
|
139
|
-
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.
|
|
126
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.33",
|
|
127
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.33",
|
|
128
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.33",
|
|
129
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.33",
|
|
130
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.33",
|
|
131
|
+
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.33",
|
|
132
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.33",
|
|
133
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.33",
|
|
134
|
+
"@rolldown/binding-darwin-arm64": "1.0.0-beta.33",
|
|
135
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.33",
|
|
136
|
+
"@rolldown/binding-openharmony-arm64": "1.0.0-beta.33",
|
|
137
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.33",
|
|
138
|
+
"@rolldown/binding-android-arm64": "1.0.0-beta.33",
|
|
139
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.33"
|
|
140
140
|
},
|
|
141
141
|
"scripts": {
|
|
142
142
|
"# Scrips for binding #": "_",
|