rolldown 1.0.0-beta.8-commit.8cce9fc → 1.0.0-beta.8-commit.c76291c

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.
@@ -328,6 +328,7 @@ var require_binding = __commonJS({ "src/binding.js"(exports, module) {
328
328
  throw new Error(`Failed to load native binding`);
329
329
  }
330
330
  module.exports.BindingBundleEndEventData = nativeBinding.BindingBundleEndEventData;
331
+ module.exports.BindingBundleErrorEventData = nativeBinding.BindingBundleErrorEventData;
331
332
  module.exports.BindingCallableBuiltinPlugin = nativeBinding.BindingCallableBuiltinPlugin;
332
333
  module.exports.BindingError = nativeBinding.BindingError;
333
334
  module.exports.BindingModuleInfo = nativeBinding.BindingModuleInfo;
@@ -561,7 +562,7 @@ var init_logs = __esm({ "src/log/logs.ts"() {
561
562
  } });
562
563
 
563
564
  //#endregion
564
- //#region ../../node_modules/.pnpm/oxc-parser@0.67.0/node_modules/oxc-parser/wrap.mjs
565
+ //#region ../../node_modules/.pnpm/oxc-parser@0.68.1/node_modules/oxc-parser/wrap.mjs
565
566
  function wrap$1(result) {
566
567
  let program, module$1, comments, errors;
567
568
  return {
@@ -598,7 +599,7 @@ function transform(key, value) {
598
599
  }
599
600
  return value;
600
601
  }
601
- var init_wrap = __esm({ "../../node_modules/.pnpm/oxc-parser@0.67.0/node_modules/oxc-parser/wrap.mjs"() {} });
602
+ var init_wrap = __esm({ "../../node_modules/.pnpm/oxc-parser@0.68.1/node_modules/oxc-parser/wrap.mjs"() {} });
602
603
 
603
604
  //#endregion
604
605
  //#region src/parse-ast-index.ts
@@ -328,6 +328,7 @@ var require_binding = require_chunk.__commonJS({ "src/binding.js"(exports, modul
328
328
  throw new Error(`Failed to load native binding`);
329
329
  }
330
330
  module.exports.BindingBundleEndEventData = nativeBinding.BindingBundleEndEventData;
331
+ module.exports.BindingBundleErrorEventData = nativeBinding.BindingBundleErrorEventData;
331
332
  module.exports.BindingCallableBuiltinPlugin = nativeBinding.BindingCallableBuiltinPlugin;
332
333
  module.exports.BindingError = nativeBinding.BindingError;
333
334
  module.exports.BindingModuleInfo = nativeBinding.BindingModuleInfo;
@@ -552,7 +553,7 @@ function augmentCodeLocation(properties, pos, source, id) {
552
553
  }
553
554
 
554
555
  //#endregion
555
- //#region ../../node_modules/.pnpm/oxc-parser@0.67.0/node_modules/oxc-parser/wrap.mjs
556
+ //#region ../../node_modules/.pnpm/oxc-parser@0.68.1/node_modules/oxc-parser/wrap.mjs
556
557
  function wrap$1(result) {
557
558
  let program, module$1, comments, errors;
558
559
  return {
@@ -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, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-D0SmlXT6.mjs";
2
+ import { augmentCodeLocation, error, import_binding, init_logs, init_parse_ast_index, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-CHCsJTcD.mjs";
3
3
  import { and, arraify, code, exclude, id, include, init_filter_index, init_misc, isNullish, moduleType, noop, or, unimplemented, unreachable, unsupported } from "./filter-index-hnEzlqRW.mjs";
4
4
  import path from "node:path";
5
5
  import colors from "ansis";
@@ -7,7 +7,7 @@ import { availableParallelism } from "node:os";
7
7
  import { Worker } from "node:worker_threads";
8
8
 
9
9
  //#region package.json
10
- var version = "1.0.0-beta.8-commit.8cce9fc";
10
+ var version = "1.0.0-beta.8-commit.c76291c";
11
11
  var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
12
12
 
13
13
  //#endregion
@@ -5644,18 +5644,20 @@ var init_watch_emitter = __esm({ "src/api/watch/watch-emitter.ts"() {
5644
5644
  const code$1 = event.bundleEventKind();
5645
5645
  switch (code$1) {
5646
5646
  case "BUNDLE_END":
5647
- const { duration, output } = event.bundleEndData();
5647
+ const { duration, output, result } = event.bundleEndData();
5648
5648
  await listener({
5649
5649
  code: "BUNDLE_END",
5650
5650
  duration,
5651
- output: [output]
5651
+ output: [output],
5652
+ result
5652
5653
  });
5653
5654
  break;
5654
5655
  case "ERROR":
5655
- const errors = event.errors();
5656
+ const data = event.bundleErrorData();
5656
5657
  await listener({
5657
5658
  code: "ERROR",
5658
- error: normalizeErrors(errors)
5659
+ error: normalizeErrors(data.error),
5660
+ result: data.result
5659
5661
  });
5660
5662
  break;
5661
5663
  default:
@@ -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-Bbz37LOL.cjs');
3
+ const require_parse_ast_index = require('./parse-ast-index-n6Ys2h9o.cjs');
4
4
  const require_filter_index = require('./filter-index-DblXSw9s.cjs');
5
5
  const node_path = require_chunk.__toESM(require("node:path"));
6
6
  const ansis = require_chunk.__toESM(require("ansis"));
@@ -8,7 +8,7 @@ const node_os = require_chunk.__toESM(require("node:os"));
8
8
  const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
9
9
 
10
10
  //#region package.json
11
- var version = "1.0.0-beta.8-commit.8cce9fc";
11
+ var version = "1.0.0-beta.8-commit.c76291c";
12
12
  var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
13
13
 
14
14
  //#endregion
@@ -4270,18 +4270,20 @@ var WatcherEmitter = class {
4270
4270
  const code$1 = event.bundleEventKind();
4271
4271
  switch (code$1) {
4272
4272
  case "BUNDLE_END":
4273
- const { duration, output } = event.bundleEndData();
4273
+ const { duration, output, result } = event.bundleEndData();
4274
4274
  await listener({
4275
4275
  code: "BUNDLE_END",
4276
4276
  duration,
4277
- output: [output]
4277
+ output: [output],
4278
+ result
4278
4279
  });
4279
4280
  break;
4280
4281
  case "ERROR":
4281
- const errors = event.errors();
4282
+ const data = event.bundleErrorData();
4282
4283
  await listener({
4283
4284
  code: "ERROR",
4284
- error: normalizeErrors(errors)
4285
+ error: normalizeErrors(data.error),
4286
+ result: data.result
4285
4287
  });
4286
4288
  break;
4287
4289
  default:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rolldown",
3
- "version": "1.0.0-beta.8-commit.8cce9fc",
3
+ "version": "1.0.0-beta.8-commit.c76291c",
4
4
  "description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
5
5
  "type": "commonjs",
6
6
  "homepage": "https://rolldown.rs/",
@@ -86,11 +86,11 @@
86
86
  "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"
87
87
  },
88
88
  "dependencies": {
89
- "@oxc-project/types": "0.67.0",
89
+ "@oxc-project/types": "0.68.1",
90
90
  "ansis": "^3.17.0"
91
91
  },
92
92
  "peerDependencies": {
93
- "@oxc-project/runtime": "0.67.0"
93
+ "@oxc-project/runtime": "0.68.1"
94
94
  },
95
95
  "peerDependenciesMeta": {
96
96
  "@oxc-project/runtime": {
@@ -111,7 +111,7 @@
111
111
  "fs-extra": "^11.2.0",
112
112
  "glob": "^11.0.0",
113
113
  "locate-character": "^3.0.0",
114
- "oxc-parser": "^0.67.0",
114
+ "oxc-parser": "0.68.1",
115
115
  "pathe": "^2.0.3",
116
116
  "remeda": "^2.10.0",
117
117
  "rolldown-plugin-dts": "^0.7.12",
@@ -124,21 +124,21 @@
124
124
  "unbuild": "^3.0.0",
125
125
  "valibot": "1.0.0",
126
126
  "@rolldown/testing": "0.0.1",
127
- "rolldown": "1.0.0-beta.8-commit.8cce9fc"
127
+ "rolldown": "1.0.0-beta.8-commit.c76291c"
128
128
  },
129
129
  "optionalDependencies": {
130
- "@rolldown/binding-darwin-arm64": "1.0.0-beta.8-commit.8cce9fc",
131
- "@rolldown/binding-darwin-x64": "1.0.0-beta.8-commit.8cce9fc",
132
- "@rolldown/binding-freebsd-x64": "1.0.0-beta.8-commit.8cce9fc",
133
- "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.8-commit.8cce9fc",
134
- "@rolldown/binding-linux-arm64-musl": "1.0.0-beta.8-commit.8cce9fc",
135
- "@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.8-commit.8cce9fc",
136
- "@rolldown/binding-linux-x64-gnu": "1.0.0-beta.8-commit.8cce9fc",
137
- "@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.8-commit.8cce9fc",
138
- "@rolldown/binding-linux-x64-musl": "1.0.0-beta.8-commit.8cce9fc",
139
- "@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.8-commit.8cce9fc",
140
- "@rolldown/binding-win32-x64-msvc": "1.0.0-beta.8-commit.8cce9fc",
141
- "@rolldown/binding-wasm32-wasi": "1.0.0-beta.8-commit.8cce9fc"
130
+ "@rolldown/binding-darwin-arm64": "1.0.0-beta.8-commit.c76291c",
131
+ "@rolldown/binding-darwin-x64": "1.0.0-beta.8-commit.c76291c",
132
+ "@rolldown/binding-freebsd-x64": "1.0.0-beta.8-commit.c76291c",
133
+ "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.8-commit.c76291c",
134
+ "@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.8-commit.c76291c",
135
+ "@rolldown/binding-linux-arm64-musl": "1.0.0-beta.8-commit.c76291c",
136
+ "@rolldown/binding-linux-x64-gnu": "1.0.0-beta.8-commit.c76291c",
137
+ "@rolldown/binding-linux-x64-musl": "1.0.0-beta.8-commit.c76291c",
138
+ "@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.8-commit.c76291c",
139
+ "@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.8-commit.c76291c",
140
+ "@rolldown/binding-wasm32-wasi": "1.0.0-beta.8-commit.c76291c",
141
+ "@rolldown/binding-win32-x64-msvc": "1.0.0-beta.8-commit.c76291c"
142
142
  },
143
143
  "scripts": {
144
144
  "# Scrips for binding #": "_",