@rolldown/browser 1.0.0-beta.31-commit.832324a → 1.0.0-beta.33

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.
Files changed (43) hide show
  1. package/dist/cli.cjs +31 -31
  2. package/dist/cli.d.cts +1 -1
  3. package/dist/cli.d.mts +1 -1
  4. package/dist/cli.mjs +33 -32
  5. package/dist/config.cjs +3 -3
  6. package/dist/config.d.cts +2 -2
  7. package/dist/config.d.mts +2 -2
  8. package/dist/config.mjs +3 -3
  9. package/dist/experimental-index.browser.mjs +1 -1
  10. package/dist/experimental-index.cjs +2 -2
  11. package/dist/experimental-index.d.cts +2 -2
  12. package/dist/experimental-index.d.mts +2 -2
  13. package/dist/experimental-index.mjs +2 -2
  14. package/dist/filter-index.d.cts +2 -2
  15. package/dist/filter-index.d.mts +2 -2
  16. package/dist/index.browser.mjs +1 -1
  17. package/dist/index.cjs +2 -2
  18. package/dist/index.d.cts +2 -2
  19. package/dist/index.d.mts +2 -2
  20. package/dist/index.mjs +2 -2
  21. package/dist/parallel-plugin-worker.cjs +2 -2
  22. package/dist/parallel-plugin-worker.d.cts +1 -1
  23. package/dist/parallel-plugin-worker.d.mts +1 -1
  24. package/dist/parallel-plugin-worker.mjs +4 -3
  25. package/dist/parallel-plugin.d.cts +2 -2
  26. package/dist/parallel-plugin.d.mts +2 -2
  27. package/dist/parse-ast-index.cjs +1 -1
  28. package/dist/parse-ast-index.d.cts +1 -1
  29. package/dist/parse-ast-index.d.mts +1 -1
  30. package/dist/parse-ast-index.mjs +1 -1
  31. package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
  32. package/dist/shared/{binding-BIqlUgrm.d.cts → binding-CFhvYkVn.d.mts} +4 -3
  33. package/dist/shared/{binding-COE5UL-B.d.mts → binding-DQk9TN_A.d.cts} +4 -3
  34. package/dist/shared/{define-config-DFC0Nu7H.d.cts → define-config-B3QOs3Kt.d.cts} +7 -1
  35. package/dist/shared/{define-config-Cf2D2abn.d.mts → define-config-DyjJkNqG.d.mts} +7 -1
  36. package/dist/shared/{load-config-CoJFc3w2.mjs → load-config-CLPLfZVe.mjs} +1 -1
  37. package/dist/shared/{load-config-Dw0YNzS-.cjs → load-config-xKQFLlGV.cjs} +1 -1
  38. package/dist/shared/{parse-ast-index-CqHkFxPM.mjs → parse-ast-index-BGzB5Bo-.mjs} +1 -1
  39. package/dist/shared/{parse-ast-index-DAsDnaa1.cjs → parse-ast-index-BZfwAN9P.cjs} +1 -1
  40. package/dist/shared/{src-DEIlKgUM.cjs → src-CGziNJPr.cjs} +145 -141
  41. package/dist/shared/{src-38thNb51.mjs → src-CZgQg1yE.mjs} +142 -138
  42. package/dist/{src-jf6KDQ1I.js → src-D_htlJ_o.js} +252 -248
  43. package/package.json +2 -2
@@ -1,3 +1,3 @@
1
- import { parseAst, parseAstAsync } from "./shared/parse-ast-index-CqHkFxPM.mjs";
1
+ import { parseAst, parseAstAsync } from "./shared/parse-ast-index-BGzB5Bo-.mjs";
2
2
 
3
3
  export { parseAst, parseAstAsync };
@@ -857,7 +857,7 @@ interface StyledComponentsOptions {
857
857
  * from this list, the directory name will be used instead of the file name for
858
858
  * the component's display name.
859
859
  *
860
- * @default ["index"]
860
+ * @default `["index"]`
861
861
  */
862
862
  meaninglessFileNames?: Array<string>;
863
863
  /**
@@ -920,8 +920,8 @@ interface TransformOptions {
920
920
  *
921
921
  * Example:
922
922
  *
923
- * * 'es2015'
924
- * * ['es2020', 'chrome58', 'edge16', 'firefox57', 'node12', 'safari11']
923
+ * * `'es2015'`
924
+ * * `['es2020', 'chrome58', 'edge16', 'firefox57', 'node12', 'safari11']`
925
925
  *
926
926
  * @default `esnext` (No transformation)
927
927
  *
@@ -1226,6 +1226,7 @@ type BindingJsonPluginStringify = boolean | string;
1226
1226
  interface BindingManifestPluginConfig {
1227
1227
  root: string;
1228
1228
  outPath: string;
1229
+ isLegacy?: () => boolean;
1229
1230
  cssEntries: () => Set<string>;
1230
1231
  }
1231
1232
  interface BindingMinifyOptions {
@@ -857,7 +857,7 @@ interface StyledComponentsOptions {
857
857
  * from this list, the directory name will be used instead of the file name for
858
858
  * the component's display name.
859
859
  *
860
- * @default ["index"]
860
+ * @default `["index"]`
861
861
  */
862
862
  meaninglessFileNames?: Array<string>;
863
863
  /**
@@ -920,8 +920,8 @@ interface TransformOptions {
920
920
  *
921
921
  * Example:
922
922
  *
923
- * * 'es2015'
924
- * * ['es2020', 'chrome58', 'edge16', 'firefox57', 'node12', 'safari11']
923
+ * * `'es2015'`
924
+ * * `['es2020', 'chrome58', 'edge16', 'firefox57', 'node12', 'safari11']`
925
925
  *
926
926
  * @default `esnext` (No transformation)
927
927
  *
@@ -1226,6 +1226,7 @@ type BindingJsonPluginStringify = boolean | string;
1226
1226
  interface BindingManifestPluginConfig {
1227
1227
  root: string;
1228
1228
  outPath: string;
1229
+ isLegacy?: () => boolean;
1229
1230
  cssEntries: () => Set<string>;
1230
1231
  }
1231
1232
  interface BindingMinifyOptions {
@@ -1,4 +1,4 @@
1
- import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingHmrUpdate, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMinifyOptions, BindingModulePreloadPolyfillPluginConfig, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWasmHelperPluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-BIqlUgrm.cjs";
1
+ import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingHmrUpdate, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMinifyOptions, BindingModulePreloadPolyfillPluginConfig, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWasmHelperPluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-DQk9TN_A.cjs";
2
2
  import { Program } from "@oxc-project/types";
3
3
  import { TopLevelFilterExpression } from "@rolldown/pluginutils";
4
4
 
@@ -543,6 +543,7 @@ interface NormalizedInputOptions {
543
543
  cwd: string | undefined;
544
544
  platform: InputOptions["platform"];
545
545
  shimMissingExports: boolean;
546
+ context: string;
546
547
  }
547
548
  //#endregion
548
549
  //#region src/options/normalized-output-options.d.ts
@@ -1117,6 +1118,11 @@ interface InputOptions {
1117
1118
  /**
1118
1119
  * Expected platform where the code run.
1119
1120
  *
1121
+ * When the platform is set to neutral:
1122
+ * - When bundling is enabled the default output format is set to esm, which uses the export syntax introduced with ECMAScript 2015 (i.e. ES6). You can change the output format if this default is not appropriate.
1123
+ * - The main fields setting is empty by default. If you want to use npm-style packages, you will likely have to configure this to be something else such as main for the standard main field used by node.
1124
+ * - The conditions setting does not automatically include any platform-specific values.
1125
+ *
1120
1126
  * @default
1121
1127
  * - 'node' if the format is 'cjs'
1122
1128
  * - 'browser' for other formats
@@ -1,4 +1,4 @@
1
- import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingHmrUpdate, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMinifyOptions, BindingModulePreloadPolyfillPluginConfig, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWasmHelperPluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-COE5UL-B.mjs";
1
+ import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingHmrUpdate, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMinifyOptions, BindingModulePreloadPolyfillPluginConfig, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWasmHelperPluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-CFhvYkVn.mjs";
2
2
  import { Program } from "@oxc-project/types";
3
3
  import { TopLevelFilterExpression } from "@rolldown/pluginutils";
4
4
 
@@ -543,6 +543,7 @@ interface NormalizedInputOptions {
543
543
  cwd: string | undefined;
544
544
  platform: InputOptions["platform"];
545
545
  shimMissingExports: boolean;
546
+ context: string;
546
547
  }
547
548
  //#endregion
548
549
  //#region src/options/normalized-output-options.d.ts
@@ -1117,6 +1118,11 @@ interface InputOptions {
1117
1118
  /**
1118
1119
  * Expected platform where the code run.
1119
1120
  *
1121
+ * When the platform is set to neutral:
1122
+ * - When bundling is enabled the default output format is set to esm, which uses the export syntax introduced with ECMAScript 2015 (i.e. ES6). You can change the output format if this default is not appropriate.
1123
+ * - The main fields setting is empty by default. If you want to use npm-style packages, you will likely have to configure this to be something else such as main for the standard main field used by node.
1124
+ * - The conditions setting does not automatically include any platform-specific values.
1125
+ *
1120
1126
  * @default
1121
1127
  * - 'node' if the format is 'cjs'
1122
1128
  * - 'browser' for other formats
@@ -1,4 +1,4 @@
1
- import { rolldown } from "./src-38thNb51.mjs";
1
+ import { rolldown } from "./src-CZgQg1yE.mjs";
2
2
  import path from "node:path";
3
3
  import { pathToFileURL } from "node:url";
4
4
  import { readdir } from "node:fs/promises";
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require('./chunk-DDkG_k5U.cjs');
2
- const require_src = require('./src-DEIlKgUM.cjs');
2
+ const require_src = require('./src-CGziNJPr.cjs');
3
3
  const node_path = require_chunk.__toESM(require("node:path"));
4
4
  const node_url = require_chunk.__toESM(require("node:url"));
5
5
  const node_fs_promises = require_chunk.__toESM(require("node:fs/promises"));
@@ -186,7 +186,7 @@ function augmentCodeLocation(properties, pos, source, id) {
186
186
  }
187
187
 
188
188
  //#endregion
189
- //#region ../../node_modules/.pnpm/oxc-parser@0.81.0/node_modules/oxc-parser/wrap.mjs
189
+ //#region ../../node_modules/.pnpm/oxc-parser@0.82.2/node_modules/oxc-parser/wrap.mjs
190
190
  function wrap$1(result) {
191
191
  let program, module, comments, errors;
192
192
  return {
@@ -187,7 +187,7 @@ function augmentCodeLocation(properties, pos, source, id) {
187
187
  }
188
188
 
189
189
  //#endregion
190
- //#region ../../node_modules/.pnpm/oxc-parser@0.81.0/node_modules/oxc-parser/wrap.mjs
190
+ //#region ../../node_modules/.pnpm/oxc-parser@0.82.2/node_modules/oxc-parser/wrap.mjs
191
191
  function wrap$1(result) {
192
192
  let program, module$1, comments, errors;
193
193
  return {