@rolldown/browser 1.0.0-beta.7-commit.a7cf9ac → 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/browser.mjs CHANGED
@@ -5,7 +5,7 @@ import "@valibot/to-json-schema";
5
5
  import * as v from "valibot";
6
6
 
7
7
  //#region package.json
8
- var version = "1.0.0-beta.7-commit.a7cf9ac";
8
+ var version = "1.0.0-beta.7-commit.46fbc61";
9
9
 
10
10
  //#endregion
11
11
  //#region src/builtin-plugin/utils.ts
@@ -712,7 +712,7 @@ const InputOptionsSchema = v.strictObject({
712
712
  dropLabels: v.pipe(v.optional(v.array(v.string())), v.description("Remove labeled statements with these label names")),
713
713
  checks: v.optional(ChecksOptionsSchema),
714
714
  keepNames: v.pipe(v.optional(v.boolean()), v.description("Keep function/class name")),
715
- 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."))
715
+ 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."))
716
716
  });
717
717
  const InputCliOverrideSchema = v.strictObject({
718
718
  external: v.pipe(v.optional(v.array(v.string())), v.description("Comma-separated list of module ids to exclude from the bundle `<module-id>,...`")),
package/dist/cli.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require('./shared/chunk-Dc32QXFI.cjs');
2
- const require_src = require('./shared/src-B0-c-FLL.cjs');
2
+ const require_src = require('./shared/src-DoypqT02.cjs');
3
3
  require('./shared/parse-ast-index-Rn-i2y3M.cjs');
4
4
  const node_path = require_chunk.__toESM(require("node:path"));
5
5
  const ansis = require_chunk.__toESM(require("ansis"));
package/dist/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { __commonJS, __esm } from "./shared/chunk-BuCFLigr.mjs";
2
- import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_misc, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-B0csdUUQ.mjs";
3
- import "./shared/parse-ast-index-CBDb3Hys.mjs";
1
+ import { __commonJS, __esm } from "./shared/chunk-nENTdJ2K.mjs";
2
+ import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_misc, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-whyHz3p3.mjs";
3
+ import "./shared/parse-ast-index-CaKd8BTZ.mjs";
4
4
  import path, { sep } from "node:path";
5
5
  import colors from "ansis";
6
6
  import process$1, { cwd } from "node:process";
@@ -760,7 +760,7 @@ function createConsola(options$1 = {}) {
760
760
  defaults: { level },
761
761
  stdout: process.stdout,
762
762
  stderr: process.stderr,
763
- prompt: (...args) => import("./shared/prompt-B3VJLbs9.mjs").then((m) => m.prompt(...args)),
763
+ prompt: (...args) => import("./shared/prompt-D713KUcE.mjs").then((m) => m.prompt(...args)),
764
764
  reporters: options$1.reporters || [options$1.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
765
765
  ...options$1
766
766
  });
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const require_chunk = require('./shared/chunk-Dc32QXFI.cjs');
3
- const require_src = require('./shared/src-B0-c-FLL.cjs');
3
+ const require_src = require('./shared/src-DoypqT02.cjs');
4
4
  require('./shared/parse-ast-index-Rn-i2y3M.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"));
@@ -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-B0csdUUQ.mjs";
2
- import "./shared/parse-ast-index-CBDb3Hys.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-whyHz3p3.mjs";
2
+ import "./shared/parse-ast-index-CaKd8BTZ.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,4 +1,4 @@
1
- const require_src = require('./shared/src-B0-c-FLL.cjs');
1
+ const require_src = require('./shared/src-DoypqT02.cjs');
2
2
  require('./shared/parse-ast-index-Rn-i2y3M.cjs');
3
3
 
4
4
  exports.VERSION = require_src.VERSION
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { VERSION, build, defineConfig, init_src, rolldown, watch, withFilter } from "./shared/src-B0csdUUQ.mjs";
2
- import "./shared/parse-ast-index-CBDb3Hys.mjs";
1
+ import { VERSION, build, defineConfig, init_src, rolldown, watch, withFilter } from "./shared/src-whyHz3p3.mjs";
2
+ import "./shared/parse-ast-index-CaKd8BTZ.mjs";
3
3
 
4
4
  init_src();
5
5
  export { VERSION, build, defineConfig, rolldown, watch, withFilter };
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require('./shared/chunk-Dc32QXFI.cjs');
2
- const require_src = require('./shared/src-B0-c-FLL.cjs');
2
+ const require_src = require('./shared/src-DoypqT02.cjs');
3
3
  require('./shared/parse-ast-index-Rn-i2y3M.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"));
@@ -1,6 +1,6 @@
1
- import { __commonJS } from "./shared/chunk-BuCFLigr.mjs";
2
- import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-B0csdUUQ.mjs";
3
- import "./shared/parse-ast-index-CBDb3Hys.mjs";
1
+ import { __commonJS } from "./shared/chunk-nENTdJ2K.mjs";
2
+ import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-whyHz3p3.mjs";
3
+ import "./shared/parse-ast-index-CaKd8BTZ.mjs";
4
4
  import { registerPlugins } from "./rolldown-binding.wasi.cjs";
5
5
  import { parentPort, workerData } from "node:worker_threads";
6
6
 
@@ -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
- import { init_parse_ast_index, parseAst, parseAstAsync } from "./shared/parse-ast-index-CBDb3Hys.mjs";
1
+ import { init_parse_ast_index, parseAst, parseAstAsync } from "./shared/parse-ast-index-CaKd8BTZ.mjs";
2
2
 
3
3
  init_parse_ast_index();
4
4
  export { parseAst, parseAstAsync };
@@ -1,4 +1,3 @@
1
-
2
1
  //#region rolldown:runtime
3
2
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
3
  var __esm = (fn, res) => function() {
@@ -1,4 +1,4 @@
1
- import { __esm } from "./chunk-BuCFLigr.mjs";
1
+ import { __esm } from "./chunk-nENTdJ2K.mjs";
2
2
  import { parseAsync, parseSync } from "../rolldown-binding.wasi.cjs";
3
3
  import colors from "ansis";
4
4
 
@@ -1,4 +1,4 @@
1
- import { __esm } from "./chunk-BuCFLigr.mjs";
1
+ import { __esm } from "./chunk-nENTdJ2K.mjs";
2
2
  import process$1, { stdin, stdout } from "node:process";
3
3
  import { WriteStream } from "node:tty";
4
4
  import f from "node:readline";
@@ -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.7-commit.a7cf9ac";
13
+ var version = "1.0.0-beta.7-commit.46fbc61";
14
14
  var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
15
15
 
16
16
  //#endregion
@@ -614,7 +614,7 @@ const InputOptionsSchema = valibot.strictObject({
614
614
  dropLabels: valibot.pipe(valibot.optional(valibot.array(valibot.string())), valibot.description("Remove labeled statements with these label names")),
615
615
  checks: valibot.optional(ChecksOptionsSchema),
616
616
  keepNames: valibot.pipe(valibot.optional(valibot.boolean()), valibot.description("Keep function/class name")),
617
- 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."))
617
+ 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."))
618
618
  });
619
619
  const InputCliOverrideSchema = valibot.strictObject({
620
620
  external: valibot.pipe(valibot.optional(valibot.array(valibot.string())), valibot.description("Comma-separated list of module ids to exclude from the bundle `<module-id>,...`")),
@@ -1,5 +1,5 @@
1
- import { __esm } from "./chunk-BuCFLigr.mjs";
2
- import { augmentCodeLocation, error, init_logs, init_parse_ast_index, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMinifyWarning, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-CBDb3Hys.mjs";
1
+ import { __esm } from "./chunk-nENTdJ2K.mjs";
2
+ import { augmentCodeLocation, error, init_logs, init_parse_ast_index, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMinifyWarning, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-CaKd8BTZ.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 colors from "ansis";
@@ -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.7-commit.a7cf9ac";
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
@@ -707,7 +707,7 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
707
707
  dropLabels: v.pipe(v.optional(v.array(v.string())), v.description("Remove labeled statements with these label names")),
708
708
  checks: v.optional(ChecksOptionsSchema),
709
709
  keepNames: v.pipe(v.optional(v.boolean()), v.description("Keep function/class name")),
710
- 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."))
710
+ 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."))
711
711
  });
712
712
  InputCliOverrideSchema = v.strictObject({
713
713
  external: v.pipe(v.optional(v.array(v.string())), v.description("Comma-separated list of module ids to exclude from the bundle `<module-id>,...`")),
@@ -266,7 +266,7 @@ export interface BindingChecksOptions {
266
266
  }
267
267
 
268
268
  export interface BindingDebugOptions {
269
- buildId?: string
269
+ sessionId?: string
270
270
  }
271
271
 
272
272
  export interface BindingDeferSyncScanData {
@@ -173,7 +173,7 @@ export interface InputOptions {
173
173
  checks?: ChecksOptions;
174
174
  makeAbsoluteExternalsRelative?: MakeAbsoluteExternalsRelative;
175
175
  debug?: {
176
- buildId?: string;
176
+ sessionId?: string;
177
177
  };
178
178
  }
179
179
  interface OverwriteInputOptionsForCli {
@@ -0,0 +1,29 @@
1
+ export declare enum HookUsageKind {
2
+ buildStart = 1,
3
+ resolveId = 2,
4
+ resolveDynamicImport = 4,
5
+ load = 8,
6
+ transform = 16,
7
+ moduleParsed = 32,
8
+ buildEnd = 64,
9
+ renderStart = 128,
10
+ renderError = 256,
11
+ renderChunk = 512,
12
+ augmentChunkHash = 1024,
13
+ generateBundle = 2048,
14
+ writeBundle = 4096,
15
+ closeBundle = 8192,
16
+ watchChange = 16384,
17
+ closeWatcher = 32768,
18
+ transformAst = 65536,
19
+ banner = 131072,
20
+ footer = 262144,
21
+ intro = 524288,
22
+ outro = 1048576
23
+ }
24
+ export declare class HookUsage {
25
+ bitflag: bigint;
26
+ constructor(bitflag: bigint);
27
+ union(kind: HookUsageKind): void;
28
+ inner(): number;
29
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rolldown/browser",
3
- "version": "1.0.0-beta.7-commit.a7cf9ac",
3
+ "version": "1.0.0-beta.7-commit.46fbc61",
4
4
  "description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
5
5
  "homepage": "https://rolldown.rs/",
6
6
  "type": "module",