rolldown 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/cli.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
2
- const require_src = require('./shared/src-DWaN7-KQ.cjs');
3
- require('./shared/parse-ast-index-DROW_mqO.cjs');
2
+ const require_src = require('./shared/src-Bv1wl15e.cjs');
3
+ require('./shared/parse-ast-index-BU0vRbCC.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"));
@@ -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-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-BCCnC5nI.mjs";
3
- import "./shared/parse-ast-index-CJTgEIMh.mjs";
2
+ import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_misc, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-IKFm0rpN.mjs";
3
+ import "./shared/parse-ast-index-C5zEG9SJ.mjs";
4
4
  import fs from "node:fs";
5
5
  import path, { sep } from "node:path";
6
6
  import colors from "ansis";
@@ -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-DWaN7-KQ.cjs');
4
- const require_parse_ast_index = require('./shared/parse-ast-index-DROW_mqO.cjs');
3
+ const require_src = require('./shared/src-Bv1wl15e.cjs');
4
+ const require_parse_ast_index = require('./shared/parse-ast-index-BU0vRbCC.cjs');
5
5
  const node_url = require_chunk.__toESM(require("node:url"));
6
6
 
7
7
  //#region src/api/experimental.ts
@@ -1,5 +1,5 @@
1
- import { BindingReplacePluginConfig, BindingTransformPluginConfig, TransformOptions, TransformResult$1 as TransformResult, moduleRunnerTransform, transform } from "./shared/binding.d-BVuAIDg-.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-CU30Caau.cjs";
1
+ import { BindingReplacePluginConfig, BindingTransformPluginConfig, TransformOptions, TransformResult$1 as TransformResult, moduleRunnerTransform, transform } from "./shared/binding.d-y7dWnUxd.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-DW_DouH4.cjs";
3
3
 
4
4
  //#region src/api/experimental.d.ts
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { BindingReplacePluginConfig, BindingTransformPluginConfig, TransformOptions, TransformResult$1 as TransformResult, moduleRunnerTransform, transform } from "./shared/binding.d-BeOzR_y0.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-CHr9lvEw.mjs";
1
+ import { BindingReplacePluginConfig, BindingTransformPluginConfig, TransformOptions, TransformResult$1 as TransformResult, moduleRunnerTransform, transform } from "./shared/binding.d-N_CFNfq2.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-BS41m-u8.mjs";
3
3
 
4
4
  //#region src/api/experimental.d.ts
5
5
  /**
@@ -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-BCCnC5nI.mjs";
2
- import { import_binding } from "./shared/parse-ast-index-CJTgEIMh.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-IKFm0rpN.mjs";
2
+ import { import_binding } from "./shared/parse-ast-index-C5zEG9SJ.mjs";
3
3
  import { pathToFileURL } from "node:url";
4
4
 
5
5
  //#region src/api/experimental.ts
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
- const require_src = require('./shared/src-DWaN7-KQ.cjs');
2
- require('./shared/parse-ast-index-DROW_mqO.cjs');
1
+ const require_src = require('./shared/src-Bv1wl15e.cjs');
2
+ require('./shared/parse-ast-index-BU0vRbCC.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-BVuAIDg-.cjs";
2
- import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, 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, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, StringFilter, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, build, defineConfig, rolldown, watch, withFilter } from "./shared/input-options.d-CU30Caau.cjs";
1
+ import { PreRenderedChunk } from "./shared/binding.d-y7dWnUxd.cjs";
2
+ import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, 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, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, StringFilter, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, build, defineConfig, rolldown, watch, withFilter } from "./shared/input-options.d-DW_DouH4.cjs";
3
3
 
4
4
  export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, 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, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, StringFilter, TransformPluginContext, TransformResult, TreeshakingOptions, 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-BeOzR_y0.mjs";
2
- import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, 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, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, StringFilter, TransformPluginContext, TransformResult, TreeshakingOptions, 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-CHr9lvEw.mjs";
1
+ import { PreRenderedChunk } from "./shared/binding.d-N_CFNfq2.mjs";
2
+ import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, 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, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, StringFilter, TransformPluginContext, TransformResult, TreeshakingOptions, 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-BS41m-u8.mjs";
3
3
 
4
4
  export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, 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, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, StringFilter, TransformPluginContext, TransformResult, TreeshakingOptions, 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-BCCnC5nI.mjs";
2
- import "./shared/parse-ast-index-CJTgEIMh.mjs";
1
+ import { VERSION, build, defineConfig, init_src, rolldown, watch, withFilter } from "./shared/src-IKFm0rpN.mjs";
2
+ import "./shared/parse-ast-index-C5zEG9SJ.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-DWaN7-KQ.cjs');
3
- const require_parse_ast_index = require('./shared/parse-ast-index-DROW_mqO.cjs');
2
+ const require_src = require('./shared/src-Bv1wl15e.cjs');
3
+ const require_parse_ast_index = require('./shared/parse-ast-index-BU0vRbCC.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-BCCnC5nI.mjs";
3
- import { import_binding } from "./shared/parse-ast-index-CJTgEIMh.mjs";
2
+ import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-IKFm0rpN.mjs";
3
+ import { import_binding } from "./shared/parse-ast-index-C5zEG9SJ.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-BVuAIDg-.cjs";
2
- import { MaybePromise, Plugin } from "./shared/input-options.d-CU30Caau.cjs";
1
+ import "./shared/binding.d-y7dWnUxd.cjs";
2
+ import { MaybePromise, Plugin } from "./shared/input-options.d-DW_DouH4.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-BeOzR_y0.mjs";
2
- import { MaybePromise, Plugin } from "./shared/input-options.d-CHr9lvEw.mjs";
1
+ import "./shared/binding.d-N_CFNfq2.mjs";
2
+ import { MaybePromise, Plugin } from "./shared/input-options.d-BS41m-u8.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-DROW_mqO.cjs');
1
+ const require_parse_ast_index = require('./shared/parse-ast-index-BU0vRbCC.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-BVuAIDg-.cjs";
1
+ import { ParseResult, ParserOptions } from "./shared/binding.d-y7dWnUxd.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-BeOzR_y0.mjs";
1
+ import { ParseResult, ParserOptions } from "./shared/binding.d-N_CFNfq2.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-CJTgEIMh.mjs";
1
+ import { init_parse_ast_index, parseAst, parseAstAsync } from "./shared/parse-ast-index-C5zEG9SJ.mjs";
2
2
 
3
3
  init_parse_ast_index();
4
4
  export { parseAst, parseAstAsync };
@@ -207,6 +207,47 @@ interface CompilerAssumptions {
207
207
  noDocumentAll?: boolean
208
208
  objectRestNoSymbols?: boolean
209
209
  pureGetters?: boolean
210
+ /**
211
+ * When using public class fields, assume that they don't shadow any getter in the current class,
212
+ * in its subclasses or in its superclass. Thus, it's safe to assign them rather than using
213
+ * `Object.defineProperty`.
214
+ *
215
+ * For example:
216
+ *
217
+ * Input:
218
+ * ```js
219
+ * class Test {
220
+ * field = 2;
221
+ *
222
+ * static staticField = 3;
223
+ * }
224
+ * ```
225
+ *
226
+ * When `set_public_class_fields` is `true`, the output will be:
227
+ * ```js
228
+ * class Test {
229
+ * constructor() {
230
+ * this.field = 2;
231
+ * }
232
+ * }
233
+ * Test.staticField = 3;
234
+ * ```
235
+ *
236
+ * Otherwise, the output will be:
237
+ * ```js
238
+ * import _defineProperty from "@oxc-project/runtime/helpers/defineProperty";
239
+ * class Test {
240
+ * constructor() {
241
+ * _defineProperty(this, "field", 2);
242
+ * }
243
+ * }
244
+ * _defineProperty(Test, "staticField", 3);
245
+ * ```
246
+ *
247
+ * NOTE: For TypeScript, if you wanted behavior is equivalent to `useDefineForClassFields: false`, you should
248
+ * set both `set_public_class_fields` and [`crate::TypeScriptOptions::remove_class_fields_without_initializer`]
249
+ * to `true`.
250
+ */
210
251
  setPublicClassFields?: boolean
211
252
  }
212
253
  interface DecoratorOptions {
@@ -812,7 +853,50 @@ interface TypeScriptOptions {
812
853
  jsxPragmaFrag?: string
813
854
  onlyRemoveTypeImports?: boolean
814
855
  allowNamespaces?: boolean
856
+ /**
857
+ * When enabled, type-only class fields are only removed if they are prefixed with the declare modifier:
858
+ *
859
+ * @deprecated
860
+ *
861
+ * Allowing `declare` fields is built-in support in Oxc without any option. If you want to remove class fields
862
+ * without initializer, you can use `remove_class_fields_without_initializer: true` instead.
863
+ */
815
864
  allowDeclareFields?: boolean
865
+ /**
866
+ * When enabled, class fields without initializers are removed.
867
+ *
868
+ * For example:
869
+ * ```ts
870
+ * class Foo {
871
+ * x: number;
872
+ * y: number = 0;
873
+ * }
874
+ * ```
875
+ * // transform into
876
+ * ```js
877
+ * class Foo {
878
+ * x: number;
879
+ * }
880
+ * ```
881
+ *
882
+ * The option is used to align with the behavior of TypeScript's `useDefineForClassFields: false` option.
883
+ * When you want to enable this, you also need to set [`crate::CompilerAssumptions::set_public_class_fields`]
884
+ * to `true`. The `set_public_class_fields: true` + `remove_class_fields_without_initializer: true` is
885
+ * equivalent to `useDefineForClassFields: false` in TypeScript.
886
+ *
887
+ * When `set_public_class_fields` is true and class-properties plugin is enabled, the above example transforms into:
888
+ *
889
+ * ```js
890
+ * class Foo {
891
+ * constructor() {
892
+ * this.y = 0;
893
+ * }
894
+ * }
895
+ * ```
896
+ *
897
+ * Defaults to `false`.
898
+ */
899
+ removeClassFieldsWithoutInitializer?: boolean
816
900
  /**
817
901
  * Also generate a `.d.ts` declaration file for TypeScript files.
818
902
  *
@@ -207,6 +207,47 @@ interface CompilerAssumptions {
207
207
  noDocumentAll?: boolean
208
208
  objectRestNoSymbols?: boolean
209
209
  pureGetters?: boolean
210
+ /**
211
+ * When using public class fields, assume that they don't shadow any getter in the current class,
212
+ * in its subclasses or in its superclass. Thus, it's safe to assign them rather than using
213
+ * `Object.defineProperty`.
214
+ *
215
+ * For example:
216
+ *
217
+ * Input:
218
+ * ```js
219
+ * class Test {
220
+ * field = 2;
221
+ *
222
+ * static staticField = 3;
223
+ * }
224
+ * ```
225
+ *
226
+ * When `set_public_class_fields` is `true`, the output will be:
227
+ * ```js
228
+ * class Test {
229
+ * constructor() {
230
+ * this.field = 2;
231
+ * }
232
+ * }
233
+ * Test.staticField = 3;
234
+ * ```
235
+ *
236
+ * Otherwise, the output will be:
237
+ * ```js
238
+ * import _defineProperty from "@oxc-project/runtime/helpers/defineProperty";
239
+ * class Test {
240
+ * constructor() {
241
+ * _defineProperty(this, "field", 2);
242
+ * }
243
+ * }
244
+ * _defineProperty(Test, "staticField", 3);
245
+ * ```
246
+ *
247
+ * NOTE: For TypeScript, if you wanted behavior is equivalent to `useDefineForClassFields: false`, you should
248
+ * set both `set_public_class_fields` and [`crate::TypeScriptOptions::remove_class_fields_without_initializer`]
249
+ * to `true`.
250
+ */
210
251
  setPublicClassFields?: boolean
211
252
  }
212
253
  interface DecoratorOptions {
@@ -812,7 +853,50 @@ interface TypeScriptOptions {
812
853
  jsxPragmaFrag?: string
813
854
  onlyRemoveTypeImports?: boolean
814
855
  allowNamespaces?: boolean
856
+ /**
857
+ * When enabled, type-only class fields are only removed if they are prefixed with the declare modifier:
858
+ *
859
+ * @deprecated
860
+ *
861
+ * Allowing `declare` fields is built-in support in Oxc without any option. If you want to remove class fields
862
+ * without initializer, you can use `remove_class_fields_without_initializer: true` instead.
863
+ */
815
864
  allowDeclareFields?: boolean
865
+ /**
866
+ * When enabled, class fields without initializers are removed.
867
+ *
868
+ * For example:
869
+ * ```ts
870
+ * class Foo {
871
+ * x: number;
872
+ * y: number = 0;
873
+ * }
874
+ * ```
875
+ * // transform into
876
+ * ```js
877
+ * class Foo {
878
+ * x: number;
879
+ * }
880
+ * ```
881
+ *
882
+ * The option is used to align with the behavior of TypeScript's `useDefineForClassFields: false` option.
883
+ * When you want to enable this, you also need to set [`crate::CompilerAssumptions::set_public_class_fields`]
884
+ * to `true`. The `set_public_class_fields: true` + `remove_class_fields_without_initializer: true` is
885
+ * equivalent to `useDefineForClassFields: false` in TypeScript.
886
+ *
887
+ * When `set_public_class_fields` is true and class-properties plugin is enabled, the above example transforms into:
888
+ *
889
+ * ```js
890
+ * class Foo {
891
+ * constructor() {
892
+ * this.y = 0;
893
+ * }
894
+ * }
895
+ * ```
896
+ *
897
+ * Defaults to `false`.
898
+ */
899
+ removeClassFieldsWithoutInitializer?: boolean
816
900
  /**
817
901
  * Also generate a `.d.ts` declaration file for TypeScript files.
818
902
  *
@@ -1,4 +1,4 @@
1
- import { BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-BeOzR_y0.mjs";
1
+ import { BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-N_CFNfq2.mjs";
2
2
  import { Program } from "@oxc-project/types";
3
3
 
4
4
  //#region src/log/logging.d.ts
@@ -1,4 +1,4 @@
1
- import { BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-BVuAIDg-.cjs";
1
+ import { BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-y7dWnUxd.cjs";
2
2
  import { Program } from "@oxc-project/types";
3
3
 
4
4
  //#region src/log/logging.d.ts
@@ -551,7 +551,7 @@ function augmentCodeLocation(properties, pos, source, id) {
551
551
  }
552
552
 
553
553
  //#endregion
554
- //#region ../../node_modules/.pnpm/oxc-parser@0.66.0/node_modules/oxc-parser/wrap.mjs
554
+ //#region ../../node_modules/.pnpm/oxc-parser@0.67.0/node_modules/oxc-parser/wrap.mjs
555
555
  function wrap$1(result) {
556
556
  let program, module$1, comments, errors;
557
557
  return {
@@ -573,19 +573,20 @@ function wrap$1(result) {
573
573
  }
574
574
  };
575
575
  }
576
- function jsonParseAst(ast) {
577
- return JSON.parse(ast, function(key, value) {
578
- if (value === null && key === "value" && Object.hasOwn(this, "type") && this.type === "Literal") {
579
- if (Object.hasOwn(this, "bigint")) return BigInt(this.bigint);
580
- if (Object.hasOwn(this, "regex")) {
581
- const { regex } = this;
582
- try {
583
- return RegExp(regex.pattern, regex.flags);
584
- } catch (_err) {}
585
- }
576
+ function jsonParseAst(program) {
577
+ return JSON.parse(program, transform);
578
+ }
579
+ function transform(key, value) {
580
+ if (value === null && key === "value" && Object.hasOwn(this, "type") && this.type === "Literal") {
581
+ if (Object.hasOwn(this, "bigint")) return BigInt(this.bigint);
582
+ if (Object.hasOwn(this, "regex")) {
583
+ const { regex } = this;
584
+ try {
585
+ return RegExp(regex.pattern, regex.flags);
586
+ } catch (_err) {}
586
587
  }
587
- return value;
588
- });
588
+ }
589
+ return value;
589
590
  }
590
591
 
591
592
  //#endregion
@@ -560,7 +560,7 @@ var init_logs = __esm({ "src/log/logs.ts"() {
560
560
  } });
561
561
 
562
562
  //#endregion
563
- //#region ../../node_modules/.pnpm/oxc-parser@0.66.0/node_modules/oxc-parser/wrap.mjs
563
+ //#region ../../node_modules/.pnpm/oxc-parser@0.67.0/node_modules/oxc-parser/wrap.mjs
564
564
  function wrap$1(result) {
565
565
  let program, module$1, comments, errors;
566
566
  return {
@@ -582,21 +582,22 @@ function wrap$1(result) {
582
582
  }
583
583
  };
584
584
  }
585
- function jsonParseAst(ast) {
586
- return JSON.parse(ast, function(key, value) {
587
- if (value === null && key === "value" && Object.hasOwn(this, "type") && this.type === "Literal") {
588
- if (Object.hasOwn(this, "bigint")) return BigInt(this.bigint);
589
- if (Object.hasOwn(this, "regex")) {
590
- const { regex } = this;
591
- try {
592
- return RegExp(regex.pattern, regex.flags);
593
- } catch (_err) {}
594
- }
585
+ function jsonParseAst(program) {
586
+ return JSON.parse(program, transform);
587
+ }
588
+ function transform(key, value) {
589
+ if (value === null && key === "value" && Object.hasOwn(this, "type") && this.type === "Literal") {
590
+ if (Object.hasOwn(this, "bigint")) return BigInt(this.bigint);
591
+ if (Object.hasOwn(this, "regex")) {
592
+ const { regex } = this;
593
+ try {
594
+ return RegExp(regex.pattern, regex.flags);
595
+ } catch (_err) {}
595
596
  }
596
- return value;
597
- });
597
+ }
598
+ return value;
598
599
  }
599
- var init_wrap = __esm({ "../../node_modules/.pnpm/oxc-parser@0.66.0/node_modules/oxc-parser/wrap.mjs"() {} });
600
+ var init_wrap = __esm({ "../../node_modules/.pnpm/oxc-parser@0.67.0/node_modules/oxc-parser/wrap.mjs"() {} });
600
601
 
601
602
  //#endregion
602
603
  //#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-DROW_mqO.cjs');
3
+ const require_parse_ast_index = require('./parse-ast-index-BU0vRbCC.cjs');
4
4
  const node_path = require_chunk.__toESM(require("node:path"));
5
5
  const __valibot_to_json_schema = require_chunk.__toESM(require("@valibot/to-json-schema"));
6
6
  const ansis = require_chunk.__toESM(require("ansis"));
@@ -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.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
@@ -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-CJTgEIMh.mjs";
2
+ import { augmentCodeLocation, error, import_binding, init_logs, init_parse_ast_index, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-C5zEG9SJ.mjs";
3
3
  import path from "node:path";
4
4
  import { toJsonSchema } from "@valibot/to-json-schema";
5
5
  import colors from "ansis";
@@ -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.8-commit.1fd551c";
11
+ var version = "1.0.0-beta.8-commit.a98d94e";
12
12
  var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
13
13
 
14
14
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rolldown",
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
  "type": "commonjs",
6
6
  "homepage": "https://rolldown.rs/",
@@ -82,13 +82,13 @@
82
82
  "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"
83
83
  },
84
84
  "dependencies": {
85
- "@oxc-project/types": "0.66.0",
85
+ "@oxc-project/types": "0.67.0",
86
86
  "@valibot/to-json-schema": "1.0.0",
87
87
  "ansis": "^3.17.0",
88
88
  "valibot": "1.0.0"
89
89
  },
90
90
  "peerDependencies": {
91
- "@oxc-project/runtime": "0.66.0"
91
+ "@oxc-project/runtime": "0.67.0"
92
92
  },
93
93
  "peerDependenciesMeta": {
94
94
  "@oxc-project/runtime": {
@@ -107,7 +107,7 @@
107
107
  "fs-extra": "^11.2.0",
108
108
  "glob": "^11.0.0",
109
109
  "locate-character": "^3.0.0",
110
- "oxc-parser": "^0.66.0",
110
+ "oxc-parser": "^0.67.0",
111
111
  "pathe": "^2.0.3",
112
112
  "remeda": "^2.10.0",
113
113
  "rolldown-plugin-dts": "^0.7.12",
@@ -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.8-commit.1fd551c"
123
+ "rolldown": "1.0.0-beta.8-commit.a98d94e"
124
124
  },
125
125
  "optionalDependencies": {
126
- "@rolldown/binding-darwin-arm64": "1.0.0-beta.8-commit.1fd551c",
127
- "@rolldown/binding-darwin-x64": "1.0.0-beta.8-commit.1fd551c",
128
- "@rolldown/binding-freebsd-x64": "1.0.0-beta.8-commit.1fd551c",
129
- "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.8-commit.1fd551c",
130
- "@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.8-commit.1fd551c",
131
- "@rolldown/binding-linux-arm64-musl": "1.0.0-beta.8-commit.1fd551c",
132
- "@rolldown/binding-linux-x64-musl": "1.0.0-beta.8-commit.1fd551c",
133
- "@rolldown/binding-wasm32-wasi": "1.0.0-beta.8-commit.1fd551c",
134
- "@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.8-commit.1fd551c",
135
- "@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.8-commit.1fd551c",
136
- "@rolldown/binding-linux-x64-gnu": "1.0.0-beta.8-commit.1fd551c",
137
- "@rolldown/binding-win32-x64-msvc": "1.0.0-beta.8-commit.1fd551c"
126
+ "@rolldown/binding-darwin-arm64": "1.0.0-beta.8-commit.a98d94e",
127
+ "@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.8-commit.a98d94e",
128
+ "@rolldown/binding-freebsd-x64": "1.0.0-beta.8-commit.a98d94e",
129
+ "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.8-commit.a98d94e",
130
+ "@rolldown/binding-linux-arm64-musl": "1.0.0-beta.8-commit.a98d94e",
131
+ "@rolldown/binding-linux-x64-gnu": "1.0.0-beta.8-commit.a98d94e",
132
+ "@rolldown/binding-darwin-x64": "1.0.0-beta.8-commit.a98d94e",
133
+ "@rolldown/binding-linux-x64-musl": "1.0.0-beta.8-commit.a98d94e",
134
+ "@rolldown/binding-wasm32-wasi": "1.0.0-beta.8-commit.a98d94e",
135
+ "@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.8-commit.a98d94e",
136
+ "@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.8-commit.a98d94e",
137
+ "@rolldown/binding-win32-x64-msvc": "1.0.0-beta.8-commit.a98d94e"
138
138
  },
139
139
  "scripts": {
140
140
  "# Scrips for binding #": "_",