@rolldown/browser 1.0.0-beta.8-commit.1fd551c → 1.0.0-beta.8-commit.a98d94e

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/browser.mjs CHANGED
@@ -5,7 +5,7 @@ import colors from "ansis";
5
5
  import * as v from "valibot";
6
6
 
7
7
  //#region package.json
8
- var version = "1.0.0-beta.8-commit.1fd551c";
8
+ var version = "1.0.0-beta.8-commit.a98d94e";
9
9
 
10
10
  //#endregion
11
11
  //#region src/builtin-plugin/utils.ts
@@ -1105,7 +1105,7 @@ function bindingPluginOrder(order) {
1105
1105
  }
1106
1106
 
1107
1107
  //#endregion
1108
- //#region ../../node_modules/.pnpm/oxc-parser@0.66.0/node_modules/oxc-parser/wrap.mjs
1108
+ //#region ../../node_modules/.pnpm/oxc-parser@0.67.0/node_modules/oxc-parser/wrap.mjs
1109
1109
  function wrap$1(result) {
1110
1110
  let program, module, comments, errors;
1111
1111
  return {
@@ -1127,19 +1127,20 @@ function wrap$1(result) {
1127
1127
  }
1128
1128
  };
1129
1129
  }
1130
- function jsonParseAst(ast) {
1131
- return JSON.parse(ast, function(key, value) {
1132
- if (value === null && key === "value" && Object.hasOwn(this, "type") && this.type === "Literal") {
1133
- if (Object.hasOwn(this, "bigint")) return BigInt(this.bigint);
1134
- if (Object.hasOwn(this, "regex")) {
1135
- const { regex } = this;
1136
- try {
1137
- return RegExp(regex.pattern, regex.flags);
1138
- } catch (_err) {}
1139
- }
1130
+ function jsonParseAst(program) {
1131
+ return JSON.parse(program, transform);
1132
+ }
1133
+ function transform(key, value) {
1134
+ if (value === null && key === "value" && Object.hasOwn(this, "type") && this.type === "Literal") {
1135
+ if (Object.hasOwn(this, "bigint")) return BigInt(this.bigint);
1136
+ if (Object.hasOwn(this, "regex")) {
1137
+ const { regex } = this;
1138
+ try {
1139
+ return RegExp(regex.pattern, regex.flags);
1140
+ } catch (_err) {}
1140
1141
  }
1141
- return value;
1142
- });
1142
+ }
1143
+ return value;
1143
1144
  }
1144
1145
 
1145
1146
  //#endregion
@@ -2115,7 +2116,7 @@ function bindingifyPlugin(plugin, options, outputOptions, pluginContextData, nor
2115
2116
  const { plugin: resolveId, meta: resolveIdMeta, filter: resolveIdFilter } = bindingifyResolveId(args);
2116
2117
  const { plugin: resolveDynamicImport, meta: resolveDynamicImportMeta } = bindingifyResolveDynamicImport(args);
2117
2118
  const { plugin: buildEnd, meta: buildEndMeta } = bindingifyBuildEnd(args);
2118
- const { plugin: transform, meta: transformMeta, filter: transformFilter } = bindingifyTransform(args);
2119
+ const { plugin: transform$1, meta: transformMeta, filter: transformFilter } = bindingifyTransform(args);
2119
2120
  const { plugin: moduleParsed, meta: moduleParsedMeta } = bindingifyModuleParsed(args);
2120
2121
  const { plugin: load, meta: loadMeta, filter: loadFilter } = bindingifyLoad(args);
2121
2122
  const { plugin: renderChunk, meta: renderChunkMeta } = bindingifyRenderChunk(args);
@@ -2143,7 +2144,7 @@ function bindingifyPlugin(plugin, options, outputOptions, pluginContextData, nor
2143
2144
  resolveDynamicImportMeta,
2144
2145
  buildEnd,
2145
2146
  buildEndMeta,
2146
- transform,
2147
+ transform: transform$1,
2147
2148
  transformMeta,
2148
2149
  transformFilter,
2149
2150
  moduleParsed,
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-BLbX9IKh.cjs');
3
- require('./shared/parse-ast-index-DAk8Z2V8.cjs');
2
+ const require_src = require('./shared/src-CJ9XODOK.cjs');
3
+ require('./shared/parse-ast-index-B9pj8J1q.cjs');
4
4
  const node_path = require_chunk.__toESM(require("node:path"));
5
5
  const ansis = require_chunk.__toESM(require("ansis"));
6
6
  const node_process = require_chunk.__toESM(require("node:process"));
@@ -1559,8 +1559,8 @@ async function loadConfig(configPath) {
1559
1559
  }
1560
1560
 
1561
1561
  //#endregion
1562
- //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.66.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
1563
- var require_usingCtx = require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.66.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
1562
+ //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.67.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
1563
+ var require_usingCtx = require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.67.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
1564
1564
  function _usingCtx() {
1565
1565
  var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
1566
1566
  var n$2 = Error();
package/dist/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { __commonJS, __esm, __toESM } from "./shared/chunk-DSsiIF1Z.mjs";
2
- import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_misc, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-BkpdHXjc.mjs";
3
- import "./shared/parse-ast-index-Cprsj_YY.mjs";
2
+ import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_misc, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-D9guL4ht.mjs";
3
+ import "./shared/parse-ast-index-DWHg_E7J.mjs";
4
4
  import path, { sep } from "node:path";
5
5
  import colors from "ansis";
6
6
  import process$1, { cwd } from "node:process";
@@ -1564,8 +1564,8 @@ var init_load_config = __esm({ "src/cli/load-config.ts"() {
1564
1564
  } });
1565
1565
 
1566
1566
  //#endregion
1567
- //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.66.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
1568
- var require_usingCtx = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.66.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
1567
+ //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.67.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
1568
+ var require_usingCtx = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.67.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
1569
1569
  function _usingCtx() {
1570
1570
  var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
1571
1571
  var n$2 = Error();
@@ -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-BLbX9IKh.cjs');
4
- require('./shared/parse-ast-index-DAk8Z2V8.cjs');
3
+ const require_src = require('./shared/src-CJ9XODOK.cjs');
4
+ require('./shared/parse-ast-index-B9pj8J1q.cjs');
5
5
  const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
6
6
  const node_url = require_chunk.__toESM(require("node:url"));
7
7
 
@@ -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, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/src-BkpdHXjc.mjs";
2
- import "./shared/parse-ast-index-Cprsj_YY.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-D9guL4ht.mjs";
2
+ import "./shared/parse-ast-index-DWHg_E7J.mjs";
3
3
  import { moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
4
4
  import { pathToFileURL } from "node:url";
5
5
 
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
- const require_src = require('./shared/src-BLbX9IKh.cjs');
2
- require('./shared/parse-ast-index-DAk8Z2V8.cjs');
1
+ const require_src = require('./shared/src-CJ9XODOK.cjs');
2
+ require('./shared/parse-ast-index-B9pj8J1q.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-BkpdHXjc.mjs";
2
- import "./shared/parse-ast-index-Cprsj_YY.mjs";
1
+ import { VERSION, build, defineConfig, init_src, rolldown, watch, withFilter } from "./shared/src-D9guL4ht.mjs";
2
+ import "./shared/parse-ast-index-DWHg_E7J.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-BLbX9IKh.cjs');
3
- require('./shared/parse-ast-index-DAk8Z2V8.cjs');
2
+ const require_src = require('./shared/src-CJ9XODOK.cjs');
3
+ require('./shared/parse-ast-index-B9pj8J1q.cjs');
4
4
  const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
5
5
  const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { __commonJS } from "./shared/chunk-DSsiIF1Z.mjs";
2
- import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-BkpdHXjc.mjs";
3
- import "./shared/parse-ast-index-Cprsj_YY.mjs";
2
+ import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-D9guL4ht.mjs";
3
+ import "./shared/parse-ast-index-DWHg_E7J.mjs";
4
4
  import { registerPlugins } from "./rolldown-binding.wasi.cjs";
5
5
  import { parentPort, workerData } from "node:worker_threads";
6
6
 
@@ -1,4 +1,4 @@
1
- const require_parse_ast_index = require('./shared/parse-ast-index-DAk8Z2V8.cjs');
1
+ const require_parse_ast_index = require('./shared/parse-ast-index-B9pj8J1q.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-Cprsj_YY.mjs";
1
+ import { init_parse_ast_index, parseAst, parseAstAsync } from "./shared/parse-ast-index-DWHg_E7J.mjs";
2
2
 
3
3
  init_parse_ast_index();
4
4
  export { parseAst, parseAstAsync };
@@ -182,7 +182,7 @@ function augmentCodeLocation(properties, pos, source, id) {
182
182
  }
183
183
 
184
184
  //#endregion
185
- //#region ../../node_modules/.pnpm/oxc-parser@0.66.0/node_modules/oxc-parser/wrap.mjs
185
+ //#region ../../node_modules/.pnpm/oxc-parser@0.67.0/node_modules/oxc-parser/wrap.mjs
186
186
  function wrap$1(result) {
187
187
  let program, module$1, comments, errors;
188
188
  return {
@@ -204,19 +204,20 @@ function wrap$1(result) {
204
204
  }
205
205
  };
206
206
  }
207
- function jsonParseAst(ast) {
208
- return JSON.parse(ast, function(key, value) {
209
- if (value === null && key === "value" && Object.hasOwn(this, "type") && this.type === "Literal") {
210
- if (Object.hasOwn(this, "bigint")) return BigInt(this.bigint);
211
- if (Object.hasOwn(this, "regex")) {
212
- const { regex } = this;
213
- try {
214
- return RegExp(regex.pattern, regex.flags);
215
- } catch (_err) {}
216
- }
207
+ function jsonParseAst(program) {
208
+ return JSON.parse(program, transform);
209
+ }
210
+ function transform(key, value) {
211
+ if (value === null && key === "value" && Object.hasOwn(this, "type") && this.type === "Literal") {
212
+ if (Object.hasOwn(this, "bigint")) return BigInt(this.bigint);
213
+ if (Object.hasOwn(this, "regex")) {
214
+ const { regex } = this;
215
+ try {
216
+ return RegExp(regex.pattern, regex.flags);
217
+ } catch (_err) {}
217
218
  }
218
- return value;
219
- });
219
+ }
220
+ return value;
220
221
  }
221
222
 
222
223
  //#endregion
@@ -190,7 +190,7 @@ var init_logs = __esm({ "src/log/logs.ts"() {
190
190
  } });
191
191
 
192
192
  //#endregion
193
- //#region ../../node_modules/.pnpm/oxc-parser@0.66.0/node_modules/oxc-parser/wrap.mjs
193
+ //#region ../../node_modules/.pnpm/oxc-parser@0.67.0/node_modules/oxc-parser/wrap.mjs
194
194
  function wrap$1(result) {
195
195
  let program, module, comments, errors;
196
196
  return {
@@ -212,21 +212,22 @@ function wrap$1(result) {
212
212
  }
213
213
  };
214
214
  }
215
- function jsonParseAst(ast) {
216
- return JSON.parse(ast, function(key, value) {
217
- if (value === null && key === "value" && Object.hasOwn(this, "type") && this.type === "Literal") {
218
- if (Object.hasOwn(this, "bigint")) return BigInt(this.bigint);
219
- if (Object.hasOwn(this, "regex")) {
220
- const { regex } = this;
221
- try {
222
- return RegExp(regex.pattern, regex.flags);
223
- } catch (_err) {}
224
- }
215
+ function jsonParseAst(program) {
216
+ return JSON.parse(program, transform);
217
+ }
218
+ function transform(key, value) {
219
+ if (value === null && key === "value" && Object.hasOwn(this, "type") && this.type === "Literal") {
220
+ if (Object.hasOwn(this, "bigint")) return BigInt(this.bigint);
221
+ if (Object.hasOwn(this, "regex")) {
222
+ const { regex } = this;
223
+ try {
224
+ return RegExp(regex.pattern, regex.flags);
225
+ } catch (_err) {}
225
226
  }
226
- return value;
227
- });
227
+ }
228
+ return value;
228
229
  }
229
- var init_wrap = __esm({ "../../node_modules/.pnpm/oxc-parser@0.66.0/node_modules/oxc-parser/wrap.mjs"() {} });
230
+ var init_wrap = __esm({ "../../node_modules/.pnpm/oxc-parser@0.67.0/node_modules/oxc-parser/wrap.mjs"() {} });
230
231
 
231
232
  //#endregion
232
233
  //#region src/parse-ast-index.ts
@@ -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-DAk8Z2V8.cjs');
3
+ const require_parse_ast_index = require('./parse-ast-index-B9pj8J1q.cjs');
4
4
  const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("../rolldown-binding.wasi.cjs"));
5
5
  const node_path = require_chunk.__toESM(require("node:path"));
6
6
  const __valibot_to_json_schema = require_chunk.__toESM(require("@valibot/to-json-schema"));
@@ -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.8-commit.1fd551c";
13
+ var version = "1.0.0-beta.8-commit.a98d94e";
14
14
  var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
15
15
 
16
16
  //#endregion
@@ -1,5 +1,5 @@
1
1
  import { __esm } from "./chunk-DSsiIF1Z.mjs";
2
- import { augmentCodeLocation, error, init_logs, init_parse_ast_index, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-Cprsj_YY.mjs";
2
+ import { augmentCodeLocation, error, init_logs, init_parse_ast_index, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-DWHg_E7J.mjs";
3
3
  import { BindingCallableBuiltinPlugin, BindingHookSideEffects, BindingLogLevel, BindingPluginOrder, BindingWatcher, Bundler, ParallelJsPluginRegistry, shutdownAsyncRuntime, startAsyncRuntime } from "../rolldown-binding.wasi.cjs";
4
4
  import path from "node:path";
5
5
  import { toJsonSchema } from "@valibot/to-json-schema";
@@ -9,7 +9,7 @@ import { availableParallelism } from "node:os";
9
9
  import { Worker } from "node:worker_threads";
10
10
 
11
11
  //#region package.json
12
- var version = "1.0.0-beta.8-commit.1fd551c";
12
+ var version = "1.0.0-beta.8-commit.a98d94e";
13
13
  var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
14
14
 
15
15
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rolldown/browser",
3
- "version": "1.0.0-beta.8-commit.1fd551c",
3
+ "version": "1.0.0-beta.8-commit.a98d94e",
4
4
  "description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
5
5
  "homepage": "https://rolldown.rs/",
6
6
  "type": "module",
@@ -55,14 +55,14 @@
55
55
  },
56
56
  "dependencies": {
57
57
  "@napi-rs/wasm-runtime": "^0.2.8",
58
- "@oxc-project/types": "0.66.0",
58
+ "@oxc-project/types": "0.67.0",
59
59
  "@valibot/to-json-schema": "1.0.0",
60
60
  "ansis": "^3.17.0",
61
61
  "pathe": "^2.0.3",
62
62
  "valibot": "1.0.0"
63
63
  },
64
64
  "peerDependencies": {
65
- "@oxc-project/runtime": "0.66.0"
65
+ "@oxc-project/runtime": "0.67.0"
66
66
  },
67
67
  "peerDependenciesMeta": {
68
68
  "@oxc-project/runtime": {