rolldown 1.0.0-beta.7-commit.b80d472 → 1.0.0-beta.7-commit.c2596d3

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-DiHrbNiz.cjs');
3
- require('./shared/parse-ast-index-CLx_7WML.cjs');
2
+ const require_src = require('./shared/src-p53hQWRH.cjs');
3
+ require('./shared/parse-ast-index-3MkelEDZ.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"));
@@ -957,9 +957,22 @@ function createConsola(options$1 = {}) {
957
957
  defaults: { level },
958
958
  stdout: process.stdout,
959
959
  stderr: process.stderr,
960
- prompt: (...args) => Promise.resolve().then(function() {
961
- return require("./shared/prompt-_yrURmmm.cjs");
962
- }).then((m) => m.prompt(...args)),
960
+ prompt: (...args) => Promise.resolve().then(
961
+ // Zero-width space, non-joiner, joiner, left-to-right mark, right-to-left mark
962
+ // Zero-width no-break space
963
+ // Combining diacritical marks
964
+ // Combining diacritical marks extended
965
+ // Combining diacritical marks supplement
966
+ // Combining diacritical marks for symbols
967
+ // Combining half marks
968
+ // Linux console (kernel)
969
+ // Windows Terminal
970
+ // Terminus (<0.2.27)
971
+ // ConEmu and cmder
972
+ function() {
973
+ return require("./shared/prompt-_yrURmmm.cjs");
974
+ }
975
+ ).then((m) => m.prompt(...args)),
963
976
  reporters: options$1.reporters || [options$1.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
964
977
  ...options$1
965
978
  });
@@ -974,6 +987,9 @@ const consola = createConsola();
974
987
 
975
988
  //#endregion
976
989
  //#region src/cli/logger.ts
990
+ /**
991
+ * Console logger
992
+ */
977
993
  const logger = process.env.ROLLDOWN_TEST ? createTestingLogger() : createConsola({ formatOptions: { date: false } });
978
994
  function createTestingLogger() {
979
995
  const types = [
@@ -1218,6 +1234,32 @@ function parseCliArguments() {
1218
1234
 
1219
1235
  //#endregion
1220
1236
  //#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
1237
+ /**
1238
+ * This is not the set of all possible signals.
1239
+ *
1240
+ * It IS, however, the set of all signals that trigger
1241
+ * an exit on either Linux or BSD systems. Linux is a
1242
+ * superset of the signal names supported on BSD, and
1243
+ * the unknown signals just fail to register, so we can
1244
+ * catch that easily enough.
1245
+ *
1246
+ * Windows signals are a different set, since there are
1247
+ * signals that terminate Windows processes, but don't
1248
+ * terminate (or don't even exist) on Posix systems.
1249
+ *
1250
+ * Don't bother with SIGKILL. It's uncatchable, which
1251
+ * means that we can't fire any callbacks anyway.
1252
+ *
1253
+ * If a user does happen to register a handler on a non-
1254
+ * fatal signal like SIGWINCH or something, and then
1255
+ * exit, it'll end up firing `process.emit('exit')`, so
1256
+ * the handler will be fired anyway.
1257
+ *
1258
+ * SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised
1259
+ * artificially, inherently leave the process in a
1260
+ * state from which it is not safe to try and enter JS
1261
+ * listeners.
1262
+ */
1221
1263
  const signals = [];
1222
1264
  signals.push("SIGHUP", "SIGINT", "SIGTERM");
1223
1265
  if (process.platform !== "win32") signals.push(
package/dist/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { __commonJS, __esm, __toESM } 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-Cgiazi-7.mjs";
3
- import "./shared/parse-ast-index-lybCSSSh.mjs";
2
+ import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_misc, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-DI_go7Bb.mjs";
3
+ import "./shared/parse-ast-index-C93JXze5.mjs";
4
4
  import fs from "node:fs";
5
5
  import path, { sep } from "node:path";
6
6
  import colors from "ansis";
@@ -1,10 +1,15 @@
1
1
  "use strict";
2
2
  const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
3
- const require_src = require('./shared/src-DiHrbNiz.cjs');
4
- const require_parse_ast_index = require('./shared/parse-ast-index-CLx_7WML.cjs');
3
+ const require_src = require('./shared/src-p53hQWRH.cjs');
4
+ const require_parse_ast_index = require('./shared/parse-ast-index-3MkelEDZ.cjs');
5
5
  const node_url = require_chunk.__toESM(require("node:url"));
6
6
 
7
7
  //#region src/api/experimental.ts
8
+ /**
9
+ * This is an experimental API. It's behavior may change in the future.
10
+ *
11
+ * Calling this API will only execute the scan stage of rolldown.
12
+ */
8
13
  const experimental_scan = async (input) => {
9
14
  const { bundler, stopWorkers } = await require_src.createBundler(input, {});
10
15
  const output = await bundler.scan();
@@ -31,6 +36,30 @@ function aliasPlugin(config) {
31
36
 
32
37
  //#endregion
33
38
  //#region src/builtin-plugin/replace-plugin.ts
39
+ /**
40
+ * Replaces targeted strings in files while bundling.
41
+ *
42
+ * @example
43
+ * // Basic usage
44
+ * ```js
45
+ * replacePlugin({
46
+ * 'process.env.NODE_ENV': JSON.stringify('production'),
47
+ * __buildDate__: () => JSON.stringify(new Date()),
48
+ * __buildVersion: 15
49
+ * })
50
+ * ```
51
+ * @example
52
+ * // With options
53
+ * ```js
54
+ * replacePlugin({
55
+ * 'process.env.NODE_ENV': JSON.stringify('production'),
56
+ * __buildDate__: () => JSON.stringify(new Date()),
57
+ * __buildVersion: 15
58
+ * }, {
59
+ * preventAssignment: false,
60
+ * })
61
+ * ```
62
+ */
34
63
  function replacePlugin(values = {}, options = {}) {
35
64
  return new require_src.BuiltinPlugin("builtin:replace", {
36
65
  ...options,
@@ -1,5 +1,5 @@
1
- import { BindingReplacePluginConfig, BindingTransformPluginConfig, TransformOptions, TransformResult$1 as TransformResult, moduleRunnerTransform, transform } from "./shared/binding.d-CJ9AePJ7.cjs";
2
- import { BuiltinPlugin, InputOptions, RolldownPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/input-options.d-0CaiVwOO.cjs";
1
+ import { BindingReplacePluginConfig, BindingTransformPluginConfig, TransformOptions, TransformResult$1 as TransformResult, moduleRunnerTransform, transform } from "./shared/binding.d-CzSMPsR_.cjs";
2
+ import { BuiltinPlugin, InputOptions, RolldownPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/input-options.d-Bc_A4cnr.cjs";
3
3
 
4
4
  //#region src/api/experimental.d.ts
5
5
  /**
@@ -7,6 +7,11 @@ import { BuiltinPlugin, InputOptions, RolldownPlugin, buildImportAnalysisPlugin,
7
7
  *
8
8
  * Calling this API will only execute the scan stage of rolldown.
9
9
  */
10
+ /**
11
+ * This is an experimental API. It's behavior may change in the future.
12
+ *
13
+ * Calling this API will only execute the scan stage of rolldown.
14
+ */
10
15
  declare const experimental_scan: (input: InputOptions) => Promise<void>;
11
16
 
12
17
  //#endregion
@@ -50,6 +55,30 @@ declare function aliasPlugin(config: AliasPluginConfig): BuiltinPlugin;
50
55
  * })
51
56
  * ```
52
57
  */
58
+ /**
59
+ * Replaces targeted strings in files while bundling.
60
+ *
61
+ * @example
62
+ * // Basic usage
63
+ * ```js
64
+ * replacePlugin({
65
+ * 'process.env.NODE_ENV': JSON.stringify('production'),
66
+ * __buildDate__: () => JSON.stringify(new Date()),
67
+ * __buildVersion: 15
68
+ * })
69
+ * ```
70
+ * @example
71
+ * // With options
72
+ * ```js
73
+ * replacePlugin({
74
+ * 'process.env.NODE_ENV': JSON.stringify('production'),
75
+ * __buildDate__: () => JSON.stringify(new Date()),
76
+ * __buildVersion: 15
77
+ * }, {
78
+ * preventAssignment: false,
79
+ * })
80
+ * ```
81
+ */
53
82
  declare function replacePlugin(values?: BindingReplacePluginConfig["values"], options?: Omit<BindingReplacePluginConfig, "values">): BuiltinPlugin;
54
83
 
55
84
  //#endregion
@@ -1,5 +1,5 @@
1
- import { BindingReplacePluginConfig, BindingTransformPluginConfig, TransformOptions, TransformResult$1 as TransformResult, moduleRunnerTransform, transform } from "./shared/binding.d-jRGZ_qiz.mjs";
2
- import { BuiltinPlugin$1 as BuiltinPlugin, InputOptions, RolldownPlugin, buildImportAnalysisPlugin$1 as buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin$1 as dynamicImportVarsPlugin, importGlobPlugin$1 as importGlobPlugin, isolatedDeclarationPlugin$1 as isolatedDeclarationPlugin, jsonPlugin$1 as jsonPlugin, loadFallbackPlugin$1 as loadFallbackPlugin, manifestPlugin$1 as manifestPlugin, moduleFederationPlugin$1 as moduleFederationPlugin, modulePreloadPolyfillPlugin$1 as modulePreloadPolyfillPlugin, reportPlugin$1 as reportPlugin, viteResolvePlugin$1 as viteResolvePlugin, wasmFallbackPlugin$1 as wasmFallbackPlugin, wasmHelperPlugin$1 as wasmHelperPlugin } from "./shared/input-options.d-6gWWIKa5.mjs";
1
+ import { BindingReplacePluginConfig, BindingTransformPluginConfig, TransformOptions, TransformResult$1 as TransformResult, moduleRunnerTransform, transform } from "./shared/binding.d-BRtxlpZ6.mjs";
2
+ import { BuiltinPlugin$1 as BuiltinPlugin, InputOptions, RolldownPlugin, buildImportAnalysisPlugin$1 as buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin$1 as dynamicImportVarsPlugin, importGlobPlugin$1 as importGlobPlugin, isolatedDeclarationPlugin$1 as isolatedDeclarationPlugin, jsonPlugin$1 as jsonPlugin, loadFallbackPlugin$1 as loadFallbackPlugin, manifestPlugin$1 as manifestPlugin, moduleFederationPlugin$1 as moduleFederationPlugin, modulePreloadPolyfillPlugin$1 as modulePreloadPolyfillPlugin, reportPlugin$1 as reportPlugin, viteResolvePlugin$1 as viteResolvePlugin, wasmFallbackPlugin$1 as wasmFallbackPlugin, wasmHelperPlugin$1 as wasmHelperPlugin } from "./shared/input-options.d-Bk53WsIe.mjs";
3
3
 
4
4
  //#region src/api/experimental.d.ts
5
5
  /**
@@ -7,6 +7,11 @@ import { BuiltinPlugin$1 as BuiltinPlugin, InputOptions, RolldownPlugin, buildIm
7
7
  *
8
8
  * Calling this API will only execute the scan stage of rolldown.
9
9
  */
10
+ /**
11
+ * This is an experimental API. It's behavior may change in the future.
12
+ *
13
+ * Calling this API will only execute the scan stage of rolldown.
14
+ */
10
15
  declare const experimental_scan: (input: InputOptions) => Promise<void>;
11
16
 
12
17
  //#endregion
@@ -50,6 +55,30 @@ declare function aliasPlugin(config: AliasPluginConfig): BuiltinPlugin;
50
55
  * })
51
56
  * ```
52
57
  */
58
+ /**
59
+ * Replaces targeted strings in files while bundling.
60
+ *
61
+ * @example
62
+ * // Basic usage
63
+ * ```js
64
+ * replacePlugin({
65
+ * 'process.env.NODE_ENV': JSON.stringify('production'),
66
+ * __buildDate__: () => JSON.stringify(new Date()),
67
+ * __buildVersion: 15
68
+ * })
69
+ * ```
70
+ * @example
71
+ * // With options
72
+ * ```js
73
+ * replacePlugin({
74
+ * 'process.env.NODE_ENV': JSON.stringify('production'),
75
+ * __buildDate__: () => JSON.stringify(new Date()),
76
+ * __buildVersion: 15
77
+ * }, {
78
+ * preventAssignment: false,
79
+ * })
80
+ * ```
81
+ */
53
82
  declare function replacePlugin(values?: BindingReplacePluginConfig["values"], options?: Omit<BindingReplacePluginConfig, "values">): BuiltinPlugin;
54
83
 
55
84
  //#endregion
@@ -1,10 +1,15 @@
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-Cgiazi-7.mjs";
2
- import { import_binding } from "./shared/parse-ast-index-lybCSSSh.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-DI_go7Bb.mjs";
2
+ import { import_binding } from "./shared/parse-ast-index-C93JXze5.mjs";
3
3
  import { pathToFileURL } from "node:url";
4
4
 
5
5
  //#region src/api/experimental.ts
6
6
  init_create_bundler();
7
7
  init_transform_to_rollup_output();
8
+ /**
9
+ * This is an experimental API. It's behavior may change in the future.
10
+ *
11
+ * Calling this API will only execute the scan stage of rolldown.
12
+ */
8
13
  const experimental_scan = async (input) => {
9
14
  const { bundler, stopWorkers } = await createBundler(input, {});
10
15
  const output = await bundler.scan();
@@ -33,6 +38,30 @@ function aliasPlugin(config) {
33
38
  //#endregion
34
39
  //#region src/builtin-plugin/replace-plugin.ts
35
40
  init_constructors();
41
+ /**
42
+ * Replaces targeted strings in files while bundling.
43
+ *
44
+ * @example
45
+ * // Basic usage
46
+ * ```js
47
+ * replacePlugin({
48
+ * 'process.env.NODE_ENV': JSON.stringify('production'),
49
+ * __buildDate__: () => JSON.stringify(new Date()),
50
+ * __buildVersion: 15
51
+ * })
52
+ * ```
53
+ * @example
54
+ * // With options
55
+ * ```js
56
+ * replacePlugin({
57
+ * 'process.env.NODE_ENV': JSON.stringify('production'),
58
+ * __buildDate__: () => JSON.stringify(new Date()),
59
+ * __buildVersion: 15
60
+ * }, {
61
+ * preventAssignment: false,
62
+ * })
63
+ * ```
64
+ */
36
65
  function replacePlugin(values = {}, options = {}) {
37
66
  return new BuiltinPlugin("builtin:replace", {
38
67
  ...options,
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
- const require_src = require('./shared/src-DiHrbNiz.cjs');
2
- require('./shared/parse-ast-index-CLx_7WML.cjs');
1
+ const require_src = require('./shared/src-p53hQWRH.cjs');
2
+ require('./shared/parse-ast-index-3MkelEDZ.cjs');
3
3
 
4
4
  exports.VERSION = require_src.VERSION
5
5
  exports.build = require_src.build
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { PreRenderedChunk } from "./shared/binding.d-CJ9AePJ7.cjs";
2
- import { AsyncPluginHooks, BuildOptions, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GetModuleInfo, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogOrStringHandler, LoggingFunction, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RollupError, RollupLog, SourceDescription, SourceMap, SourceMapInput, StringFilter, TransformPluginContext, TransformResult, VERSION, WarningHandlerWithDefault, WatchOptions, build, defineConfig, rolldown, watch, withFilter } from "./shared/input-options.d-0CaiVwOO.cjs";
1
+ import { PreRenderedChunk } from "./shared/binding.d-CzSMPsR_.cjs";
2
+ import { AsyncPluginHooks, BuildOptions, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GetModuleInfo, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogOrStringHandler, LoggingFunction, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RollupError, RollupLog, SourceDescription, SourceMap, SourceMapInput, StringFilter, TransformPluginContext, TransformResult, VERSION, WarningHandlerWithDefault, WatchOptions, build, defineConfig, rolldown, watch, withFilter } from "./shared/input-options.d-Bc_A4cnr.cjs";
3
3
 
4
4
  export { AsyncPluginHooks, BuildOptions, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GetModuleInfo, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogOrStringHandler, LoggingFunction, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RollupError, RollupLog, SourceDescription, SourceMap, SourceMapInput, StringFilter, TransformPluginContext, TransformResult, VERSION, WarningHandlerWithDefault, WatchOptions, build, defineConfig, rolldown, watch, withFilter };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { PreRenderedChunk } from "./shared/binding.d-jRGZ_qiz.mjs";
2
- import { AsyncPluginHooks, BuildOptions, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GetModuleInfo, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogOrStringHandler, LoggingFunction, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RollupError, RollupLog, SourceDescription, SourceMap, SourceMapInput, StringFilter, TransformPluginContext, TransformResult, VERSION$1 as VERSION, WarningHandlerWithDefault, WatchOptions, build$1 as build, defineConfig$1 as defineConfig, rolldown$1 as rolldown, watch$1 as watch, withFilter$1 as withFilter } from "./shared/input-options.d-6gWWIKa5.mjs";
1
+ import { PreRenderedChunk } from "./shared/binding.d-BRtxlpZ6.mjs";
2
+ import { AsyncPluginHooks, BuildOptions, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GetModuleInfo, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogOrStringHandler, LoggingFunction, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RollupError, RollupLog, SourceDescription, SourceMap, SourceMapInput, StringFilter, TransformPluginContext, TransformResult, VERSION$1 as VERSION, WarningHandlerWithDefault, WatchOptions, build$1 as build, defineConfig$1 as defineConfig, rolldown$1 as rolldown, watch$1 as watch, withFilter$1 as withFilter } from "./shared/input-options.d-Bk53WsIe.mjs";
3
3
 
4
4
  export { AsyncPluginHooks, BuildOptions, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GetModuleInfo, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogOrStringHandler, LoggingFunction, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RollupError, RollupLog, SourceDescription, SourceMap, SourceMapInput, StringFilter, TransformPluginContext, TransformResult, VERSION, WarningHandlerWithDefault, WatchOptions, build, defineConfig, rolldown, watch, withFilter };
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { VERSION, build, defineConfig, init_src, rolldown, watch, withFilter } from "./shared/src-Cgiazi-7.mjs";
2
- import "./shared/parse-ast-index-lybCSSSh.mjs";
1
+ import { VERSION, build, defineConfig, init_src, rolldown, watch, withFilter } from "./shared/src-DI_go7Bb.mjs";
2
+ import "./shared/parse-ast-index-C93JXze5.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-DiHrbNiz.cjs');
3
- const require_parse_ast_index = require('./shared/parse-ast-index-CLx_7WML.cjs');
2
+ const require_src = require('./shared/src-p53hQWRH.cjs');
3
+ const require_parse_ast_index = require('./shared/parse-ast-index-3MkelEDZ.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-Cgiazi-7.mjs";
3
- import { import_binding } from "./shared/parse-ast-index-lybCSSSh.mjs";
2
+ import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-DI_go7Bb.mjs";
3
+ import { import_binding } from "./shared/parse-ast-index-C93JXze5.mjs";
4
4
  import { parentPort, workerData } from "node:worker_threads";
5
5
 
6
6
  //#region src/parallel-plugin-worker.ts
@@ -1,5 +1,5 @@
1
- import "./shared/binding.d-CJ9AePJ7.cjs";
2
- import { MaybePromise, Plugin } from "./shared/input-options.d-0CaiVwOO.cjs";
1
+ import "./shared/binding.d-CzSMPsR_.cjs";
2
+ import { MaybePromise, Plugin } from "./shared/input-options.d-Bc_A4cnr.cjs";
3
3
 
4
4
  //#region src/plugin/parallel-plugin-implementation.d.ts
5
5
  type ParallelPluginImplementation = Plugin;
@@ -1,5 +1,5 @@
1
- import "./shared/binding.d-jRGZ_qiz.mjs";
2
- import { MaybePromise, Plugin } from "./shared/input-options.d-6gWWIKa5.mjs";
1
+ import "./shared/binding.d-BRtxlpZ6.mjs";
2
+ import { MaybePromise, Plugin } from "./shared/input-options.d-Bk53WsIe.mjs";
3
3
 
4
4
  //#region src/plugin/parallel-plugin-implementation.d.ts
5
5
  type ParallelPluginImplementation = Plugin;
@@ -1,4 +1,4 @@
1
- const require_parse_ast_index = require('./shared/parse-ast-index-CLx_7WML.cjs');
1
+ const require_parse_ast_index = require('./shared/parse-ast-index-3MkelEDZ.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 { ParseResult, ParserOptions } from "./shared/binding.d-CJ9AePJ7.cjs";
1
+ import { ParseResult, ParserOptions } from "./shared/binding.d-CzSMPsR_.cjs";
2
2
  import { Program } from "@oxc-project/types";
3
3
 
4
4
  //#region src/parse-ast-index.d.ts
@@ -1,4 +1,4 @@
1
- import { ParseResult, ParserOptions } from "./shared/binding.d-jRGZ_qiz.mjs";
1
+ import { ParseResult, ParserOptions } from "./shared/binding.d-BRtxlpZ6.mjs";
2
2
  import { Program } from "@oxc-project/types";
3
3
 
4
4
  //#region src/parse-ast-index.d.ts
@@ -1,4 +1,4 @@
1
- import { init_parse_ast_index, parseAst, parseAstAsync } from "./shared/parse-ast-index-lybCSSSh.mjs";
1
+ import { init_parse_ast_index, parseAst, parseAstAsync } from "./shared/parse-ast-index-C93JXze5.mjs";
2
2
 
3
3
  init_parse_ast_index();
4
4
  export { parseAst, parseAstAsync };
@@ -341,6 +341,11 @@ interface IsolatedDeclarationsOptions {
341
341
  stripInternal?: boolean
342
342
  sourcemap?: boolean
343
343
  }
344
+ /**
345
+ * Configure how TSX and JSX are transformed.
346
+ *
347
+ * @see {@link https://babeljs.io/docs/babel-plugin-transform-react-jsx#options}
348
+ */
344
349
  /**
345
350
  * Configure how TSX and JSX are transformed.
346
351
  *
@@ -435,6 +440,19 @@ interface JsxOptions {
435
440
  */
436
441
  refresh?: boolean | ReactRefreshOptions
437
442
  }
443
+ /**
444
+ * Transform JavaScript code to a Vite Node runnable module.
445
+ *
446
+ * @param filename The name of the file being transformed.
447
+ * @param sourceText the source code itself
448
+ * @param options The options for the transformation. See {@link
449
+ * ModuleRunnerTransformOptions} for more information.
450
+ *
451
+ * @returns an object containing the transformed code, source maps, and any
452
+ * errors that occurred during parsing or transformation.
453
+ *
454
+ * @deprecated Only works for Vite.
455
+ */
438
456
  /**
439
457
  * Transform JavaScript code to a Vite Node runnable module.
440
458
  *
@@ -633,6 +651,18 @@ interface StaticImportEntry {
633
651
  */
634
652
  isType: boolean
635
653
  }
654
+ /**
655
+ * Transpile a JavaScript or TypeScript into a target ECMAScript version.
656
+ *
657
+ * @param filename The name of the file being transformed. If this is a
658
+ * relative path, consider setting the {@link TransformOptions#cwd} option..
659
+ * @param sourceText the source code itself
660
+ * @param options The options for the transformation. See {@link
661
+ * TransformOptions} for more information.
662
+ *
663
+ * @returns an object containing the transformed code, source maps, and any
664
+ * errors that occurred during parsing or transformation.
665
+ */
636
666
  /**
637
667
  * Transpile a JavaScript or TypeScript into a target ECMAScript version.
638
668
  *
@@ -646,6 +676,11 @@ interface StaticImportEntry {
646
676
  * errors that occurred during parsing or transformation.
647
677
  */
648
678
  declare function transform(filename: string, sourceText: string, options?: TransformOptions | undefined | null): TransformResult
679
+ /**
680
+ * Options for transforming a JavaScript or TypeScript file.
681
+ *
682
+ * @see {@link transform}
683
+ */
649
684
  /**
650
685
  * Options for transforming a JavaScript or TypeScript file.
651
686
  *
@@ -341,6 +341,11 @@ interface IsolatedDeclarationsOptions {
341
341
  stripInternal?: boolean
342
342
  sourcemap?: boolean
343
343
  }
344
+ /**
345
+ * Configure how TSX and JSX are transformed.
346
+ *
347
+ * @see {@link https://babeljs.io/docs/babel-plugin-transform-react-jsx#options}
348
+ */
344
349
  /**
345
350
  * Configure how TSX and JSX are transformed.
346
351
  *
@@ -435,6 +440,19 @@ interface JsxOptions {
435
440
  */
436
441
  refresh?: boolean | ReactRefreshOptions
437
442
  }
443
+ /**
444
+ * Transform JavaScript code to a Vite Node runnable module.
445
+ *
446
+ * @param filename The name of the file being transformed.
447
+ * @param sourceText the source code itself
448
+ * @param options The options for the transformation. See {@link
449
+ * ModuleRunnerTransformOptions} for more information.
450
+ *
451
+ * @returns an object containing the transformed code, source maps, and any
452
+ * errors that occurred during parsing or transformation.
453
+ *
454
+ * @deprecated Only works for Vite.
455
+ */
438
456
  /**
439
457
  * Transform JavaScript code to a Vite Node runnable module.
440
458
  *
@@ -633,6 +651,18 @@ interface StaticImportEntry {
633
651
  */
634
652
  isType: boolean
635
653
  }
654
+ /**
655
+ * Transpile a JavaScript or TypeScript into a target ECMAScript version.
656
+ *
657
+ * @param filename The name of the file being transformed. If this is a
658
+ * relative path, consider setting the {@link TransformOptions#cwd} option..
659
+ * @param sourceText the source code itself
660
+ * @param options The options for the transformation. See {@link
661
+ * TransformOptions} for more information.
662
+ *
663
+ * @returns an object containing the transformed code, source maps, and any
664
+ * errors that occurred during parsing or transformation.
665
+ */
636
666
  /**
637
667
  * Transpile a JavaScript or TypeScript into a target ECMAScript version.
638
668
  *
@@ -646,6 +676,11 @@ interface StaticImportEntry {
646
676
  * errors that occurred during parsing or transformation.
647
677
  */
648
678
  declare function transform(filename: string, sourceText: string, options?: TransformOptions | undefined | null): TransformResult
679
+ /**
680
+ * Options for transforming a JavaScript or TypeScript file.
681
+ *
682
+ * @see {@link transform}
683
+ */
649
684
  /**
650
685
  * Options for transforming a JavaScript or TypeScript file.
651
686
  *
@@ -1,4 +1,4 @@
1
- import { BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-CJ9AePJ7.cjs";
1
+ import { BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-CzSMPsR_.cjs";
2
2
  import { Program } from "@oxc-project/types";
3
3
 
4
4
  //#region src/log/logging.d.ts
@@ -572,6 +572,9 @@ interface RolldownOptions extends InputOptions {
572
572
  /**
573
573
  * Type for `default export` of `rolldown.config.js` file.
574
574
  */
575
+ /**
576
+ * Type for `default export` of `rolldown.config.js` file.
577
+ */
575
578
  type ConfigExport = RolldownOptions | RolldownOptions[];
576
579
 
577
580
  //#endregion
@@ -638,6 +641,9 @@ type EnumeratedPluginHookNames = typeof ENUMERATED_PLUGIN_HOOK_NAMES;
638
641
  /**
639
642
  * Names of all hooks in a `Plugin` object. Does not include `name` and `api`, since they are not hooks.
640
643
  */
644
+ /**
645
+ * Names of all hooks in a `Plugin` object. Does not include `name` and `api`, since they are not hooks.
646
+ */
641
647
  type PluginHookNames = EnumeratedPluginHookNames[number];
642
648
  /**
643
649
  * Names of all defined hooks. It's like
@@ -649,6 +655,16 @@ type PluginHookNames = EnumeratedPluginHookNames[number];
649
655
  * }
650
656
  * ```
651
657
  */
658
+ /**
659
+ * Names of all defined hooks. It's like
660
+ * ```ts
661
+ * type DefinedHookNames = {
662
+ * options: 'options',
663
+ * buildStart: 'buildStart',
664
+ * ...
665
+ * }
666
+ * ```
667
+ */
652
668
  type DefinedHookNames = { readonly [K in PluginHookNames] : K };
653
669
  /**
654
670
  * Names of all defined hooks. It's like
@@ -660,6 +676,16 @@ type DefinedHookNames = { readonly [K in PluginHookNames] : K };
660
676
  * }
661
677
  * ```
662
678
  */
679
+ /**
680
+ * Names of all defined hooks. It's like
681
+ * ```js
682
+ * const DEFINED_HOOK_NAMES ={
683
+ * options: 'options',
684
+ * buildStart: 'buildStart',
685
+ * ...
686
+ * }
687
+ * ```
688
+ */
663
689
  declare const DEFINED_HOOK_NAMES: DefinedHookNames;
664
690
 
665
691
  //#endregion
@@ -1,4 +1,4 @@
1
- import { BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-jRGZ_qiz.mjs";
1
+ import { BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-BRtxlpZ6.mjs";
2
2
  import { Program } from "@oxc-project/types";
3
3
 
4
4
  //#region src/log/logging.d.ts
@@ -572,6 +572,9 @@ interface RolldownOptions extends InputOptions {
572
572
  /**
573
573
  * Type for `default export` of `rolldown.config.js` file.
574
574
  */
575
+ /**
576
+ * Type for `default export` of `rolldown.config.js` file.
577
+ */
575
578
  type ConfigExport = RolldownOptions | RolldownOptions[];
576
579
 
577
580
  //#endregion
@@ -638,6 +641,9 @@ type EnumeratedPluginHookNames = typeof ENUMERATED_PLUGIN_HOOK_NAMES;
638
641
  /**
639
642
  * Names of all hooks in a `Plugin` object. Does not include `name` and `api`, since they are not hooks.
640
643
  */
644
+ /**
645
+ * Names of all hooks in a `Plugin` object. Does not include `name` and `api`, since they are not hooks.
646
+ */
641
647
  type PluginHookNames = EnumeratedPluginHookNames[number];
642
648
  /**
643
649
  * Names of all defined hooks. It's like
@@ -649,6 +655,16 @@ type PluginHookNames = EnumeratedPluginHookNames[number];
649
655
  * }
650
656
  * ```
651
657
  */
658
+ /**
659
+ * Names of all defined hooks. It's like
660
+ * ```ts
661
+ * type DefinedHookNames = {
662
+ * options: 'options',
663
+ * buildStart: 'buildStart',
664
+ * ...
665
+ * }
666
+ * ```
667
+ */
652
668
  type DefinedHookNames = { readonly [K in PluginHookNames] : K };
653
669
  /**
654
670
  * Names of all defined hooks. It's like
@@ -660,6 +676,16 @@ type DefinedHookNames = { readonly [K in PluginHookNames] : K };
660
676
  * }
661
677
  * ```
662
678
  */
679
+ /**
680
+ * Names of all defined hooks. It's like
681
+ * ```js
682
+ * const DEFINED_HOOK_NAMES ={
683
+ * options: 'options',
684
+ * buildStart: 'buildStart',
685
+ * ...
686
+ * }
687
+ * ```
688
+ */
663
689
  declare const DEFINED_HOOK_NAMES: DefinedHookNames;
664
690
 
665
691
  //#endregion
@@ -420,6 +420,10 @@ function getCodeFrame(source, line, column) {
420
420
  function rangeContains(range, index) {
421
421
  return range.start <= index && index < range.end;
422
422
  }
423
+ /**
424
+ * @param {string} source
425
+ * @param {import('./types').Options} [options]
426
+ */
423
427
  function getLocator(source, options = {}) {
424
428
  const { offsetLine = 0, offsetColumn = 0 } = options;
425
429
  let start = 0;
@@ -457,6 +461,12 @@ function getLocator(source, options = {}) {
457
461
  }
458
462
  return locator;
459
463
  }
464
+ /**
465
+ * @param {string} source
466
+ * @param {string | number} search
467
+ * @param {import('./types').Options} [options]
468
+ * @returns {Location | undefined}
469
+ */
460
470
  function locate(source, search, options) {
461
471
  return getLocator(source, options)(search, options && options.startIndex);
462
472
  }
@@ -423,6 +423,10 @@ var init_code_frame = __esm({ "src/utils/code-frame.ts"() {
423
423
  function rangeContains(range, index) {
424
424
  return range.start <= index && index < range.end;
425
425
  }
426
+ /**
427
+ * @param {string} source
428
+ * @param {import('./types').Options} [options]
429
+ */
426
430
  function getLocator(source, options = {}) {
427
431
  const { offsetLine = 0, offsetColumn = 0 } = options;
428
432
  let start = 0;
@@ -460,6 +464,12 @@ function getLocator(source, options = {}) {
460
464
  }
461
465
  return locator;
462
466
  }
467
+ /**
468
+ * @param {string} source
469
+ * @param {string | number} search
470
+ * @param {import('./types').Options} [options]
471
+ * @returns {Location | undefined}
472
+ */
463
473
  function locate(source, search, options) {
464
474
  return getLocator(source, options)(search, options && options.startIndex);
465
475
  }
@@ -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-lybCSSSh.mjs";
2
+ import { augmentCodeLocation, error, import_binding, init_logs, init_parse_ast_index, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMinifyWarning, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-C93JXze5.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.b80d472";
11
+ var version = "1.0.0-beta.7-commit.c2596d3";
12
12
  var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
13
13
 
14
14
  //#endregion
@@ -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-CLx_7WML.cjs');
3
+ const require_parse_ast_index = require('./parse-ast-index-3MkelEDZ.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.b80d472";
12
+ var version = "1.0.0-beta.7-commit.c2596d3";
13
13
  var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
14
14
 
15
15
  //#endregion
@@ -280,6 +280,16 @@ const ENUMERATED_PLUGIN_HOOK_NAMES = [
280
280
  "intro",
281
281
  "outro"
282
282
  ];
283
+ /**
284
+ * Names of all defined hooks. It's like
285
+ * ```js
286
+ * const DEFINED_HOOK_NAMES ={
287
+ * options: 'options',
288
+ * buildStart: 'buildStart',
289
+ * ...
290
+ * }
291
+ * ```
292
+ */
283
293
  const DEFINED_HOOK_NAMES = {
284
294
  [ENUMERATED_PLUGIN_HOOK_NAMES[0]]: ENUMERATED_PLUGIN_HOOK_NAMES[0],
285
295
  [ENUMERATED_PLUGIN_HOOK_NAMES[1]]: ENUMERATED_PLUGIN_HOOK_NAMES[1],
@@ -810,6 +820,12 @@ function getJsonSchema() {
810
820
 
811
821
  //#endregion
812
822
  //#region src/constants/plugin-context.ts
823
+ /**
824
+ * If Composed plugins call `this.resolve` with `skipSelf: true`, the composed plugins will be skipped as a whole.
825
+ * To prevent that, we use this symbol to store the actual caller of `this.resolve` with `skipSelf: true`. And we
826
+ * will modify the skipSelf option to `false` and use this symbol to skip the caller itself in the composed plugins
827
+ * internally.
828
+ */
813
829
  const SYMBOL_FOR_RESOLVE_CALLER_THAT_SKIP_SELF = Symbol("plugin-context-resolve-caller");
814
830
 
815
831
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rolldown",
3
- "version": "1.0.0-beta.7-commit.b80d472",
3
+ "version": "1.0.0-beta.7-commit.c2596d3",
4
4
  "description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
5
5
  "type": "commonjs",
6
6
  "homepage": "https://rolldown.rs/",
@@ -120,21 +120,21 @@
120
120
  "typescript": "^5.7.3",
121
121
  "unbuild": "^3.0.0",
122
122
  "@rolldown/testing": "0.0.1",
123
- "rolldown": "1.0.0-beta.7-commit.b80d472"
123
+ "rolldown": "1.0.0-beta.7-commit.c2596d3"
124
124
  },
125
125
  "optionalDependencies": {
126
- "@rolldown/binding-darwin-arm64": "1.0.0-beta.7-commit.b80d472",
127
- "@rolldown/binding-darwin-x64": "1.0.0-beta.7-commit.b80d472",
128
- "@rolldown/binding-freebsd-x64": "1.0.0-beta.7-commit.b80d472",
129
- "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.7-commit.b80d472",
130
- "@rolldown/binding-linux-arm64-musl": "1.0.0-beta.7-commit.b80d472",
131
- "@rolldown/binding-linux-x64-gnu": "1.0.0-beta.7-commit.b80d472",
132
- "@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.7-commit.b80d472",
133
- "@rolldown/binding-linux-x64-musl": "1.0.0-beta.7-commit.b80d472",
134
- "@rolldown/binding-wasm32-wasi": "1.0.0-beta.7-commit.b80d472",
135
- "@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.7-commit.b80d472",
136
- "@rolldown/binding-win32-x64-msvc": "1.0.0-beta.7-commit.b80d472",
137
- "@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.7-commit.b80d472"
126
+ "@rolldown/binding-darwin-arm64": "1.0.0-beta.7-commit.c2596d3",
127
+ "@rolldown/binding-darwin-x64": "1.0.0-beta.7-commit.c2596d3",
128
+ "@rolldown/binding-freebsd-x64": "1.0.0-beta.7-commit.c2596d3",
129
+ "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.7-commit.c2596d3",
130
+ "@rolldown/binding-linux-arm64-musl": "1.0.0-beta.7-commit.c2596d3",
131
+ "@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.7-commit.c2596d3",
132
+ "@rolldown/binding-linux-x64-gnu": "1.0.0-beta.7-commit.c2596d3",
133
+ "@rolldown/binding-linux-x64-musl": "1.0.0-beta.7-commit.c2596d3",
134
+ "@rolldown/binding-wasm32-wasi": "1.0.0-beta.7-commit.c2596d3",
135
+ "@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.7-commit.c2596d3",
136
+ "@rolldown/binding-win32-x64-msvc": "1.0.0-beta.7-commit.c2596d3",
137
+ "@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.7-commit.c2596d3"
138
138
  },
139
139
  "scripts": {
140
140
  "# Scrips for binding #": "_",