rolldown 1.0.0-beta.7-commit.cef50bd → 1.0.0-beta.7-commit.46fbc61

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
2
- const require_src = require('./shared/src-C6TpHEV0.cjs');
3
- require('./shared/parse-ast-index-BYnHVW-r.cjs');
2
+ const require_src = require('./shared/src-CbcfNaXm.cjs');
3
+ require('./shared/parse-ast-index-CLx_7WML.cjs');
4
4
  const node_fs = require_chunk.__toESM(require("node:fs"));
5
5
  const node_path = require_chunk.__toESM(require("node:path"));
6
6
  const ansis = require_chunk.__toESM(require("ansis"));
@@ -1268,7 +1268,9 @@ var Emitter = class {
1268
1268
  removeListener(ev, fn) {
1269
1269
  const list = this.listeners[ev];
1270
1270
  const i$1 = list.indexOf(fn);
1271
+ /* c8 ignore start */
1271
1272
  if (i$1 === -1) return;
1273
+ /* c8 ignore stop */
1272
1274
  if (i$1 === 0 && list.length === 1) list.length = 0;
1273
1275
  else list.splice(i$1, 1);
1274
1276
  }
@@ -1303,7 +1305,9 @@ var SignalExitFallback = class extends SignalExitBase {
1303
1305
  unload() {}
1304
1306
  };
1305
1307
  var SignalExit = class extends SignalExitBase {
1308
+ /* c8 ignore start */
1306
1309
  #hupSig = process$2.platform === "win32" ? "SIGINT" : "SIGHUP";
1310
+ /* c8 ignore stop */
1307
1311
  #emitter = new Emitter();
1308
1312
  #process;
1309
1313
  #originalProcessEmit;
@@ -1317,11 +1321,14 @@ var SignalExit = class extends SignalExitBase {
1317
1321
  for (const sig of signals) this.#sigListeners[sig] = () => {
1318
1322
  const listeners = this.#process.listeners(sig);
1319
1323
  let { count } = this.#emitter;
1324
+ /* c8 ignore start */
1320
1325
  const p = process$3;
1321
1326
  if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") count += p.__signal_exit_emitter__.count;
1327
+ /* c8 ignore stop */
1322
1328
  if (listeners.length === count) {
1323
1329
  this.unload();
1324
1330
  const ret = this.#emitter.emit("exit", null, sig);
1331
+ /* c8 ignore start */
1325
1332
  const s$1 = sig === "SIGHUP" ? this.#hupSig : sig;
1326
1333
  if (!ret) process$3.kill(process$3.pid, s$1);
1327
1334
  }
@@ -1330,7 +1337,9 @@ var SignalExit = class extends SignalExitBase {
1330
1337
  this.#originalProcessEmit = process$3.emit;
1331
1338
  }
1332
1339
  onExit(cb, opts) {
1340
+ /* c8 ignore start */
1333
1341
  if (!processOk(this.#process)) return () => {};
1342
+ /* c8 ignore stop */
1334
1343
  if (this.#loaded === false) this.load();
1335
1344
  const ev = opts?.alwaysLast ? "afterExit" : "exit";
1336
1345
  this.#emitter.on(ev, cb);
@@ -1359,18 +1368,23 @@ var SignalExit = class extends SignalExitBase {
1359
1368
  this.#loaded = false;
1360
1369
  signals.forEach((sig) => {
1361
1370
  const listener = this.#sigListeners[sig];
1371
+ /* c8 ignore start */
1362
1372
  if (!listener) throw new Error("Listener not defined for signal: " + sig);
1373
+ /* c8 ignore stop */
1363
1374
  try {
1364
1375
  this.#process.removeListener(sig, listener);
1365
1376
  } catch (_$1) {}
1377
+ /* c8 ignore stop */
1366
1378
  });
1367
1379
  this.#process.emit = this.#originalProcessEmit;
1368
1380
  this.#process.reallyExit = this.#originalProcessReallyExit;
1369
1381
  this.#emitter.count -= 1;
1370
1382
  }
1371
1383
  #processReallyExit(code) {
1384
+ /* c8 ignore start */
1372
1385
  if (!processOk(this.#process)) return 0;
1373
1386
  this.#process.exitCode = code || 0;
1387
+ /* c8 ignore stop */
1374
1388
  this.#emitter.emit("exit", this.#process.exitCode, null);
1375
1389
  return this.#originalProcessReallyExit.call(this.#process, this.#process.exitCode);
1376
1390
  }
@@ -1378,8 +1392,11 @@ var SignalExit = class extends SignalExitBase {
1378
1392
  const og = this.#originalProcessEmit;
1379
1393
  if (ev === "exit" && processOk(this.#process)) {
1380
1394
  if (typeof args[0] === "number") this.#process.exitCode = args[0];
1395
+ /* c8 ignore start */
1381
1396
  const ret = og.call(this.#process, ev, ...args);
1397
+ /* c8 ignore start */
1382
1398
  this.#emitter.emit("exit", this.#process.exitCode, null);
1399
+ /* c8 ignore stop */
1383
1400
  return ret;
1384
1401
  } else return og.call(this.#process, ev, ...args);
1385
1402
  }
package/dist/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { __commonJS, __esm } from "./shared/chunk-DUYDk_2O.mjs";
2
- import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_misc, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-BEJPRIHr.mjs";
3
- import "./shared/parse-ast-index-DIgNCrdQ.mjs";
2
+ import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_misc, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-Ca98NyM6.mjs";
3
+ import "./shared/parse-ast-index-lybCSSSh.mjs";
4
4
  import fs from "node:fs";
5
5
  import path, { sep } from "node:path";
6
6
  import colors from "ansis";
@@ -1310,7 +1310,9 @@ var init_mjs = __esm({ "../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/
1310
1310
  removeListener(ev, fn) {
1311
1311
  const list = this.listeners[ev];
1312
1312
  const i$1 = list.indexOf(fn);
1313
+ /* c8 ignore start */
1313
1314
  if (i$1 === -1) return;
1315
+ /* c8 ignore stop */
1314
1316
  if (i$1 === 0 && list.length === 1) list.length = 0;
1315
1317
  else list.splice(i$1, 1);
1316
1318
  }
@@ -1345,7 +1347,9 @@ var init_mjs = __esm({ "../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/
1345
1347
  unload() {}
1346
1348
  };
1347
1349
  SignalExit = class extends SignalExitBase {
1350
+ /* c8 ignore start */
1348
1351
  #hupSig = process$2.platform === "win32" ? "SIGINT" : "SIGHUP";
1352
+ /* c8 ignore stop */
1349
1353
  #emitter = new Emitter();
1350
1354
  #process;
1351
1355
  #originalProcessEmit;
@@ -1359,11 +1363,14 @@ var init_mjs = __esm({ "../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/
1359
1363
  for (const sig of signals) this.#sigListeners[sig] = () => {
1360
1364
  const listeners = this.#process.listeners(sig);
1361
1365
  let { count } = this.#emitter;
1366
+ /* c8 ignore start */
1362
1367
  const p = process$3;
1363
1368
  if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") count += p.__signal_exit_emitter__.count;
1369
+ /* c8 ignore stop */
1364
1370
  if (listeners.length === count) {
1365
1371
  this.unload();
1366
1372
  const ret = this.#emitter.emit("exit", null, sig);
1373
+ /* c8 ignore start */
1367
1374
  const s$1 = sig === "SIGHUP" ? this.#hupSig : sig;
1368
1375
  if (!ret) process$3.kill(process$3.pid, s$1);
1369
1376
  }
@@ -1372,7 +1379,9 @@ var init_mjs = __esm({ "../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/
1372
1379
  this.#originalProcessEmit = process$3.emit;
1373
1380
  }
1374
1381
  onExit(cb, opts) {
1382
+ /* c8 ignore start */
1375
1383
  if (!processOk(this.#process)) return () => {};
1384
+ /* c8 ignore stop */
1376
1385
  if (this.#loaded === false) this.load();
1377
1386
  const ev = opts?.alwaysLast ? "afterExit" : "exit";
1378
1387
  this.#emitter.on(ev, cb);
@@ -1401,18 +1410,23 @@ var init_mjs = __esm({ "../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/
1401
1410
  this.#loaded = false;
1402
1411
  signals.forEach((sig) => {
1403
1412
  const listener = this.#sigListeners[sig];
1413
+ /* c8 ignore start */
1404
1414
  if (!listener) throw new Error("Listener not defined for signal: " + sig);
1415
+ /* c8 ignore stop */
1405
1416
  try {
1406
1417
  this.#process.removeListener(sig, listener);
1407
1418
  } catch (_$1) {}
1419
+ /* c8 ignore stop */
1408
1420
  });
1409
1421
  this.#process.emit = this.#originalProcessEmit;
1410
1422
  this.#process.reallyExit = this.#originalProcessReallyExit;
1411
1423
  this.#emitter.count -= 1;
1412
1424
  }
1413
1425
  #processReallyExit(code) {
1426
+ /* c8 ignore start */
1414
1427
  if (!processOk(this.#process)) return 0;
1415
1428
  this.#process.exitCode = code || 0;
1429
+ /* c8 ignore stop */
1416
1430
  this.#emitter.emit("exit", this.#process.exitCode, null);
1417
1431
  return this.#originalProcessReallyExit.call(this.#process, this.#process.exitCode);
1418
1432
  }
@@ -1420,8 +1434,11 @@ var init_mjs = __esm({ "../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/
1420
1434
  const og = this.#originalProcessEmit;
1421
1435
  if (ev === "exit" && processOk(this.#process)) {
1422
1436
  if (typeof args[0] === "number") this.#process.exitCode = args[0];
1437
+ /* c8 ignore start */
1423
1438
  const ret = og.call(this.#process, ev, ...args);
1439
+ /* c8 ignore start */
1424
1440
  this.#emitter.emit("exit", this.#process.exitCode, null);
1441
+ /* c8 ignore stop */
1425
1442
  return ret;
1426
1443
  } else return og.call(this.#process, ev, ...args);
1427
1444
  }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
3
- const require_src = require('./shared/src-C6TpHEV0.cjs');
4
- const require_parse_ast_index = require('./shared/parse-ast-index-BYnHVW-r.cjs');
3
+ const require_src = require('./shared/src-CbcfNaXm.cjs');
4
+ const require_parse_ast_index = require('./shared/parse-ast-index-CLx_7WML.cjs');
5
5
  const node_url = require_chunk.__toESM(require("node:url"));
6
6
 
7
7
  //#region src/api/experimental.ts
@@ -73,6 +73,7 @@ Object.defineProperty(exports, 'moduleRunnerTransform', {
73
73
  }
74
74
  });
75
75
  exports.replacePlugin = replacePlugin
76
+ exports.reportPlugin = require_src.reportPlugin
76
77
  exports.scan = experimental_scan
77
78
  Object.defineProperty(exports, 'transform', {
78
79
  enumerable: true,
@@ -1,5 +1,5 @@
1
- import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, init_compose_js_plugins, init_constructors, init_create_bundler, init_normalize_string_or_regex, init_transform_to_rollup_output, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/src-BEJPRIHr.mjs";
2
- import { import_binding } from "./shared/parse-ast-index-DIgNCrdQ.mjs";
1
+ import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, init_compose_js_plugins, init_constructors, init_create_bundler, init_normalize_string_or_regex, init_transform_to_rollup_output, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/src-Ca98NyM6.mjs";
2
+ import { import_binding } from "./shared/parse-ast-index-lybCSSSh.mjs";
3
3
  import { pathToFileURL } from "node:url";
4
4
 
5
5
  //#region src/api/experimental.ts
@@ -65,4 +65,4 @@ init_constructors();
65
65
  //#endregion
66
66
  var moduleRunnerTransform = import_binding.moduleRunnerTransform;
67
67
  var transform = import_binding.transform;
68
- export { aliasPlugin, buildImportAnalysisPlugin, composeJsPlugins as composePlugins, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, replacePlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin };
68
+ export { aliasPlugin, buildImportAnalysisPlugin, composeJsPlugins as composePlugins, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, replacePlugin, reportPlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin };
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
- const require_src = require('./shared/src-C6TpHEV0.cjs');
2
- require('./shared/parse-ast-index-BYnHVW-r.cjs');
1
+ const require_src = require('./shared/src-CbcfNaXm.cjs');
2
+ require('./shared/parse-ast-index-CLx_7WML.cjs');
3
3
 
4
4
  exports.VERSION = require_src.VERSION
5
5
  exports.build = require_src.build
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { VERSION, build, defineConfig, init_src, rolldown, watch, withFilter } from "./shared/src-BEJPRIHr.mjs";
2
- import "./shared/parse-ast-index-DIgNCrdQ.mjs";
1
+ import { VERSION, build, defineConfig, init_src, rolldown, watch, withFilter } from "./shared/src-Ca98NyM6.mjs";
2
+ import "./shared/parse-ast-index-lybCSSSh.mjs";
3
3
 
4
4
  init_src();
5
5
  export { VERSION, build, defineConfig, rolldown, watch, withFilter };
@@ -1,6 +1,6 @@
1
1
  const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
2
- const require_src = require('./shared/src-C6TpHEV0.cjs');
3
- const require_parse_ast_index = require('./shared/parse-ast-index-BYnHVW-r.cjs');
2
+ const require_src = require('./shared/src-CbcfNaXm.cjs');
3
+ const require_parse_ast_index = require('./shared/parse-ast-index-CLx_7WML.cjs');
4
4
  const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
5
5
 
6
6
  //#region src/parallel-plugin-worker.ts
@@ -1,6 +1,6 @@
1
1
  import { __commonJS } from "./shared/chunk-DUYDk_2O.mjs";
2
- import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-BEJPRIHr.mjs";
3
- import { import_binding } from "./shared/parse-ast-index-DIgNCrdQ.mjs";
2
+ import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-Ca98NyM6.mjs";
3
+ import { import_binding } from "./shared/parse-ast-index-lybCSSSh.mjs";
4
4
  import { parentPort, workerData } from "node:worker_threads";
5
5
 
6
6
  //#region src/parallel-plugin-worker.ts
@@ -1,4 +1,3 @@
1
-
2
1
  //#region src/plugin/parallel-plugin-implementation.ts
3
2
  function defineParallelPluginImplementation(plugin) {
4
3
  return plugin;
@@ -1,4 +1,4 @@
1
- const require_parse_ast_index = require('./shared/parse-ast-index-BYnHVW-r.cjs');
1
+ const require_parse_ast_index = require('./shared/parse-ast-index-CLx_7WML.cjs');
2
2
 
3
3
  exports.parseAst = require_parse_ast_index.parseAst
4
4
  exports.parseAstAsync = require_parse_ast_index.parseAstAsync
@@ -1,4 +1,4 @@
1
- import { init_parse_ast_index, parseAst, parseAstAsync } from "./shared/parse-ast-index-DIgNCrdQ.mjs";
1
+ import { init_parse_ast_index, parseAst, parseAstAsync } from "./shared/parse-ast-index-lybCSSSh.mjs";
2
2
 
3
3
  init_parse_ast_index();
4
4
  export { parseAst, parseAstAsync };
@@ -545,7 +545,7 @@ function augmentCodeLocation(properties, pos, source, id) {
545
545
  }
546
546
 
547
547
  //#endregion
548
- //#region ../../node_modules/.pnpm/oxc-parser@0.63.0/node_modules/oxc-parser/wrap.mjs
548
+ //#region ../../node_modules/.pnpm/oxc-parser@0.64.0/node_modules/oxc-parser/wrap.mjs
549
549
  function wrap$1(result) {
550
550
  let program, module$1, comments, errors;
551
551
  return {
@@ -554,7 +554,7 @@ var init_logs = __esm({ "src/log/logs.ts"() {
554
554
  } });
555
555
 
556
556
  //#endregion
557
- //#region ../../node_modules/.pnpm/oxc-parser@0.63.0/node_modules/oxc-parser/wrap.mjs
557
+ //#region ../../node_modules/.pnpm/oxc-parser@0.64.0/node_modules/oxc-parser/wrap.mjs
558
558
  function wrap$1(result) {
559
559
  let program, module$1, comments, errors;
560
560
  return {
@@ -590,7 +590,7 @@ function jsonParseAst(ast) {
590
590
  return value;
591
591
  });
592
592
  }
593
- var init_wrap = __esm({ "../../node_modules/.pnpm/oxc-parser@0.63.0/node_modules/oxc-parser/wrap.mjs"() {} });
593
+ var init_wrap = __esm({ "../../node_modules/.pnpm/oxc-parser@0.64.0/node_modules/oxc-parser/wrap.mjs"() {} });
594
594
 
595
595
  //#endregion
596
596
  //#region src/parse-ast-index.ts
@@ -1,5 +1,5 @@
1
1
  import { __esm } from "./chunk-DUYDk_2O.mjs";
2
- import { augmentCodeLocation, error, import_binding, init_logs, init_parse_ast_index, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMinifyWarning, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-DIgNCrdQ.mjs";
2
+ import { augmentCodeLocation, error, import_binding, init_logs, init_parse_ast_index, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMinifyWarning, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-lybCSSSh.mjs";
3
3
  import path from "node:path";
4
4
  import colors from "ansis";
5
5
  import { toJsonSchema } from "@valibot/to-json-schema";
@@ -8,7 +8,7 @@ import { availableParallelism } from "node:os";
8
8
  import { Worker } from "node:worker_threads";
9
9
 
10
10
  //#region package.json
11
- var version = "1.0.0-beta.7-commit.cef50bd";
11
+ var version = "1.0.0-beta.7-commit.46fbc61";
12
12
  var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
13
13
 
14
14
  //#endregion
@@ -40,6 +40,9 @@ function dynamicImportVarsPlugin() {
40
40
  function importGlobPlugin(config) {
41
41
  return new BuiltinPlugin("builtin:import-glob", config);
42
42
  }
43
+ function reportPlugin(config) {
44
+ return new BuiltinPlugin("builtin:report", config);
45
+ }
43
46
  function manifestPlugin(config) {
44
47
  return new BuiltinPlugin("builtin:manifest", config);
45
48
  }
@@ -703,7 +706,7 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
703
706
  dropLabels: v.pipe(v.optional(v.array(v.string())), v.description("Remove labeled statements with these label names")),
704
707
  checks: v.optional(ChecksOptionsSchema),
705
708
  keepNames: v.pipe(v.optional(v.boolean()), v.description("Keep function/class name")),
706
- debug: v.pipe(v.optional(v.object({ buildId: v.pipe(v.optional(v.string()), v.description("Used to name the build.")) })), v.description("Enable debug mode. Emit debug information to disk. This might slow down the build process significantly."))
709
+ debug: v.pipe(v.optional(v.object({ sessionId: v.pipe(v.optional(v.string()), v.description("Used to name the build.")) })), v.description("Enable debug mode. Emit debug information to disk. This might slow down the build process significantly."))
707
710
  });
708
711
  InputCliOverrideSchema = v.strictObject({
709
712
  external: v.pipe(v.optional(v.array(v.string())), v.description("Comma-separated list of module ids to exclude from the bundle `<module-id>,...`")),
@@ -1140,8 +1143,9 @@ var init_plugin_context = __esm({ "src/plugin/plugin-context.ts"() {
1140
1143
  await context.load(id, bindingifySideEffects(options.moduleSideEffects), (_success) => {
1141
1144
  resolveFn();
1142
1145
  });
1143
- } finally {
1146
+ } catch (e$5) {
1144
1147
  data.loadModulePromiseMap.delete(id);
1148
+ throw e$5;
1145
1149
  }
1146
1150
  return promise;
1147
1151
  }
@@ -2146,7 +2150,7 @@ var init_plugin_context_data = __esm({ "src/plugin/plugin-context-data.ts"() {
2146
2150
  moduleOptionMap = new Map();
2147
2151
  resolveOptionsMap = new Map();
2148
2152
  loadModulePromiseMap = new Map();
2149
- meta = null;
2153
+ renderedChunkMeta = null;
2150
2154
  updateModuleOption(id, option) {
2151
2155
  const existing = this.moduleOptionMap.get(id);
2152
2156
  if (existing) {
@@ -2212,10 +2216,14 @@ var init_plugin_context_data = __esm({ "src/plugin/plugin-context-data.ts"() {
2212
2216
  this.resolveOptionsMap.delete(receipt);
2213
2217
  }
2214
2218
  setRenderChunkMeta(meta) {
2215
- this.meta = meta;
2219
+ this.renderedChunkMeta = meta;
2216
2220
  }
2217
2221
  getRenderChunkMeta() {
2218
- return this.meta;
2222
+ return this.renderedChunkMeta;
2223
+ }
2224
+ clear() {
2225
+ this.renderedChunkMeta = null;
2226
+ this.loadModulePromiseMap.clear();
2219
2227
  }
2220
2228
  };
2221
2229
  } });
@@ -2277,7 +2285,8 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
2277
2285
  return ret;
2278
2286
  },
2279
2287
  makeAbsoluteExternalsRelative: bindingifyMakeAbsoluteExternalsRelative(inputOptions.makeAbsoluteExternalsRelative),
2280
- debug: inputOptions.debug
2288
+ debug: inputOptions.debug,
2289
+ invalidateJsSideCache: pluginContextData.clear.bind(pluginContextData)
2281
2290
  };
2282
2291
  }
2283
2292
  function bindingifyHmr(hmr) {
@@ -4371,4 +4380,4 @@ var init_src = __esm({ "src/index.ts"() {
4371
4380
  } });
4372
4381
 
4373
4382
  //#endregion
4374
- export { BuiltinPlugin, PluginContextData, VERSION, arraify, bindingifyPlugin, build, buildImportAnalysisPlugin, composeJsPlugins, createBundler, defineConfig, description, dynamicImportVarsPlugin, getInputCliKeys, getJsonSchema, getOutputCliKeys, handleOutputErrors, importGlobPlugin, init_bindingify_plugin, init_compose_js_plugins, init_constructors, init_create_bundler, init_misc, init_normalize_string_or_regex, init_plugin_context_data, init_rolldown, init_src, init_transform_to_rollup_output, init_validator, init_watch, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, rolldown, validateCliOptions, version, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch, withFilter };
4383
+ export { BuiltinPlugin, PluginContextData, VERSION, arraify, bindingifyPlugin, build, buildImportAnalysisPlugin, composeJsPlugins, createBundler, defineConfig, description, dynamicImportVarsPlugin, getInputCliKeys, getJsonSchema, getOutputCliKeys, handleOutputErrors, importGlobPlugin, init_bindingify_plugin, init_compose_js_plugins, init_constructors, init_create_bundler, init_misc, init_normalize_string_or_regex, init_plugin_context_data, init_rolldown, init_src, init_transform_to_rollup_output, init_validator, init_watch, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reportPlugin, rolldown, validateCliOptions, version, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch, withFilter };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const require_chunk = require('./chunk-qZFfknuJ.cjs');
3
- const require_parse_ast_index = require('./parse-ast-index-BYnHVW-r.cjs');
3
+ const require_parse_ast_index = require('./parse-ast-index-CLx_7WML.cjs');
4
4
  const node_path = require_chunk.__toESM(require("node:path"));
5
5
  const ansis = require_chunk.__toESM(require("ansis"));
6
6
  const __valibot_to_json_schema = require_chunk.__toESM(require("@valibot/to-json-schema"));
@@ -9,7 +9,7 @@ const node_os = require_chunk.__toESM(require("node:os"));
9
9
  const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
10
10
 
11
11
  //#region package.json
12
- var version = "1.0.0-beta.7-commit.cef50bd";
12
+ var version = "1.0.0-beta.7-commit.46fbc61";
13
13
  var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
14
14
 
15
15
  //#endregion
@@ -46,6 +46,9 @@ function dynamicImportVarsPlugin() {
46
46
  function importGlobPlugin(config) {
47
47
  return new BuiltinPlugin("builtin:import-glob", config);
48
48
  }
49
+ function reportPlugin(config) {
50
+ return new BuiltinPlugin("builtin:report", config);
51
+ }
49
52
  function manifestPlugin(config) {
50
53
  return new BuiltinPlugin("builtin:manifest", config);
51
54
  }
@@ -610,7 +613,7 @@ const InputOptionsSchema = valibot.strictObject({
610
613
  dropLabels: valibot.pipe(valibot.optional(valibot.array(valibot.string())), valibot.description("Remove labeled statements with these label names")),
611
614
  checks: valibot.optional(ChecksOptionsSchema),
612
615
  keepNames: valibot.pipe(valibot.optional(valibot.boolean()), valibot.description("Keep function/class name")),
613
- debug: valibot.pipe(valibot.optional(valibot.object({ buildId: valibot.pipe(valibot.optional(valibot.string()), valibot.description("Used to name the build.")) })), valibot.description("Enable debug mode. Emit debug information to disk. This might slow down the build process significantly."))
616
+ debug: valibot.pipe(valibot.optional(valibot.object({ sessionId: valibot.pipe(valibot.optional(valibot.string()), valibot.description("Used to name the build.")) })), valibot.description("Enable debug mode. Emit debug information to disk. This might slow down the build process significantly."))
614
617
  });
615
618
  const InputCliOverrideSchema = valibot.strictObject({
616
619
  external: valibot.pipe(valibot.optional(valibot.array(valibot.string())), valibot.description("Comma-separated list of module ids to exclude from the bundle `<module-id>,...`")),
@@ -1053,8 +1056,9 @@ var PluginContextImpl = class extends MinimalPluginContextImpl {
1053
1056
  await context.load(id, bindingifySideEffects(options.moduleSideEffects), (_success) => {
1054
1057
  resolveFn();
1055
1058
  });
1056
- } finally {
1059
+ } catch (e) {
1057
1060
  data.loadModulePromiseMap.delete(id);
1061
+ throw e;
1058
1062
  }
1059
1063
  return promise;
1060
1064
  }
@@ -1993,7 +1997,7 @@ var PluginContextData = class {
1993
1997
  moduleOptionMap = new Map();
1994
1998
  resolveOptionsMap = new Map();
1995
1999
  loadModulePromiseMap = new Map();
1996
- meta = null;
2000
+ renderedChunkMeta = null;
1997
2001
  updateModuleOption(id, option) {
1998
2002
  const existing = this.moduleOptionMap.get(id);
1999
2003
  if (existing) {
@@ -2059,10 +2063,14 @@ var PluginContextData = class {
2059
2063
  this.resolveOptionsMap.delete(receipt);
2060
2064
  }
2061
2065
  setRenderChunkMeta(meta) {
2062
- this.meta = meta;
2066
+ this.renderedChunkMeta = meta;
2063
2067
  }
2064
2068
  getRenderChunkMeta() {
2065
- return this.meta;
2069
+ return this.renderedChunkMeta;
2070
+ }
2071
+ clear() {
2072
+ this.renderedChunkMeta = null;
2073
+ this.loadModulePromiseMap.clear();
2066
2074
  }
2067
2075
  };
2068
2076
 
@@ -2122,7 +2130,8 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
2122
2130
  return ret;
2123
2131
  },
2124
2132
  makeAbsoluteExternalsRelative: bindingifyMakeAbsoluteExternalsRelative(inputOptions.makeAbsoluteExternalsRelative),
2125
- debug: inputOptions.debug
2133
+ debug: inputOptions.debug,
2134
+ invalidateJsSideCache: pluginContextData.clear.bind(pluginContextData)
2126
2135
  };
2127
2136
  }
2128
2137
  function bindingifyHmr(hmr) {
@@ -3096,6 +3105,12 @@ Object.defineProperty(exports, 'normalizedStringOrRegex', {
3096
3105
  return normalizedStringOrRegex;
3097
3106
  }
3098
3107
  });
3108
+ Object.defineProperty(exports, 'reportPlugin', {
3109
+ enumerable: true,
3110
+ get: function () {
3111
+ return reportPlugin;
3112
+ }
3113
+ });
3099
3114
  Object.defineProperty(exports, 'rolldown', {
3100
3115
  enumerable: true,
3101
3116
  get: function () {