@rolldown/browser 1.0.0-beta.8-commit.ca23f2d → 1.0.0-beta.8-commit.8cce9fc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/browser.mjs CHANGED
@@ -3,7 +3,7 @@ import path from "pathe";
3
3
  import colors from "ansis";
4
4
 
5
5
  //#region package.json
6
- var version = "1.0.0-beta.8-commit.ca23f2d";
6
+ var version = "1.0.0-beta.8-commit.8cce9fc";
7
7
 
8
8
  //#endregion
9
9
  //#region src/builtin-plugin/utils.ts
@@ -822,29 +822,6 @@ function custom(check2, message) {
822
822
  };
823
823
  }
824
824
  /* @__NO_SIDE_EFFECTS__ */
825
- function enum_(enum__, message) {
826
- const options = [];
827
- for (const key in enum__) if (`${+key}` !== key || typeof enum__[key] !== "string" || !Object.is(enum__[enum__[key]], +key)) options.push(enum__[key]);
828
- return {
829
- kind: "schema",
830
- type: "enum",
831
- reference: enum_,
832
- expects: /* @__PURE__ */ _joinExpects(options.map(_stringify), "|"),
833
- async: false,
834
- enum: enum__,
835
- options,
836
- message,
837
- get "~standard"() {
838
- return /* @__PURE__ */ _getStandardProps(this);
839
- },
840
- "~run"(dataset, config2) {
841
- if (this.options.includes(dataset.value)) dataset.typed = true;
842
- else _addIssue(this, "type", dataset, config2);
843
- return dataset;
844
- }
845
- };
846
- }
847
- /* @__NO_SIDE_EFFECTS__ */
848
825
  function function_(message) {
849
826
  return {
850
827
  kind: "schema",
@@ -1713,21 +1690,20 @@ const InputCliOptionsSchema = omit(strictObject({
1713
1690
  "profilerNames",
1714
1691
  "watch"
1715
1692
  ]);
1716
- var ESTarget = /* @__PURE__ */ function(ESTarget$1) {
1717
- ESTarget$1["ES6"] = "es6";
1718
- ESTarget$1["ES2015"] = "es2015";
1719
- ESTarget$1["ES2016"] = "es2016";
1720
- ESTarget$1["ES2017"] = "es2017";
1721
- ESTarget$1["ES2018"] = "es2018";
1722
- ESTarget$1["ES2019"] = "es2019";
1723
- ESTarget$1["ES2020"] = "es2020";
1724
- ESTarget$1["ES2021"] = "es2021";
1725
- ESTarget$1["ES2022"] = "es2022";
1726
- ESTarget$1["ES2023"] = "es2023";
1727
- ESTarget$1["ES2024"] = "es2024";
1728
- ESTarget$1["ESNext"] = "esnext";
1729
- return ESTarget$1;
1730
- }(ESTarget || {});
1693
+ const ESTargetSchema = union([
1694
+ literal("es6"),
1695
+ literal("es2015"),
1696
+ literal("es2016"),
1697
+ literal("es2017"),
1698
+ literal("es2018"),
1699
+ literal("es2019"),
1700
+ literal("es2020"),
1701
+ literal("es2021"),
1702
+ literal("es2022"),
1703
+ literal("es2023"),
1704
+ literal("es2024"),
1705
+ literal("esnext")
1706
+ ]);
1731
1707
  const ModuleFormatSchema = union([
1732
1708
  literal("es"),
1733
1709
  literal("cjs"),
@@ -1807,7 +1783,7 @@ const OutputOptionsSchema = strictObject({
1807
1783
  comments: pipe(optional(union([literal("none"), literal("preserve-legal")])), description("Control comments in the output")),
1808
1784
  plugins: optional(custom(() => true)),
1809
1785
  polyfillRequire: pipe(optional(boolean()), description("Disable require polyfill injection")),
1810
- target: pipe(optional(enum_(ESTarget)), description("The JavaScript target environment")),
1786
+ target: pipe(optional(ESTargetSchema), description("The JavaScript target environment")),
1811
1787
  hoistTransitiveImports: optional(custom((input) => {
1812
1788
  if (input) return false;
1813
1789
  return true;
package/dist/cli.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
2
- const require_src = require('./shared/src-kLRbpYMX.cjs');
2
+ const require_src = require('./shared/src-DCasbprL.cjs');
3
3
  const require_filter_index = require('./shared/filter-index-ChddWdsi.cjs');
4
4
  require('./shared/parse-ast-index-DTWvag1h.cjs');
5
5
  const node_path = require_chunk.__toESM(require("node:path"));
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { __commonJS, __esm, __toESM } from "./shared/chunk-DSsiIF1Z.mjs";
2
- import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-9jqOvJ-O.mjs";
2
+ import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-B8JI4wNu.mjs";
3
3
  import { arraify, init_misc } from "./shared/filter-index-DmisSKZF.mjs";
4
4
  import "./shared/parse-ast-index-B5wGnMSg.mjs";
5
5
  import path, { sep } from "node:path";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
3
- const require_src = require('./shared/src-kLRbpYMX.cjs');
3
+ const require_src = require('./shared/src-DCasbprL.cjs');
4
4
  require('./shared/filter-index-ChddWdsi.cjs');
5
5
  require('./shared/parse-ast-index-DTWvag1h.cjs');
6
6
  const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
@@ -1,4 +1,4 @@
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-9jqOvJ-O.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-B8JI4wNu.mjs";
2
2
  import "./shared/filter-index-DmisSKZF.mjs";
3
3
  import "./shared/parse-ast-index-B5wGnMSg.mjs";
4
4
  import { moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- const require_src = require('./shared/src-kLRbpYMX.cjs');
1
+ const require_src = require('./shared/src-DCasbprL.cjs');
2
2
  require('./shared/filter-index-ChddWdsi.cjs');
3
3
  require('./shared/parse-ast-index-DTWvag1h.cjs');
4
4
 
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-9jqOvJ-O.mjs";
1
+ import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-B8JI4wNu.mjs";
2
2
  import "./shared/filter-index-DmisSKZF.mjs";
3
3
  import "./shared/parse-ast-index-B5wGnMSg.mjs";
4
4
 
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
2
- const require_src = require('./shared/src-kLRbpYMX.cjs');
2
+ const require_src = require('./shared/src-DCasbprL.cjs');
3
3
  require('./shared/filter-index-ChddWdsi.cjs');
4
4
  require('./shared/parse-ast-index-DTWvag1h.cjs');
5
5
  const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
@@ -1,5 +1,5 @@
1
1
  import { __commonJS } from "./shared/chunk-DSsiIF1Z.mjs";
2
- import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-9jqOvJ-O.mjs";
2
+ import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-B8JI4wNu.mjs";
3
3
  import "./shared/filter-index-DmisSKZF.mjs";
4
4
  import "./shared/parse-ast-index-B5wGnMSg.mjs";
5
5
  import { registerPlugins } from "./rolldown-binding.wasi.cjs";
@@ -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.ca23f2d";
11
+ var version = "1.0.0-beta.8-commit.8cce9fc";
12
12
  var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
13
13
 
14
14
  //#endregion
@@ -720,29 +720,6 @@ function custom(check2, message) {
720
720
  };
721
721
  }
722
722
  /* @__NO_SIDE_EFFECTS__ */
723
- function enum_(enum__, message) {
724
- const options = [];
725
- for (const key in enum__) if (`${+key}` !== key || typeof enum__[key] !== "string" || !Object.is(enum__[enum__[key]], +key)) options.push(enum__[key]);
726
- return {
727
- kind: "schema",
728
- type: "enum",
729
- reference: enum_,
730
- expects: /* @__PURE__ */ _joinExpects(options.map(_stringify), "|"),
731
- async: false,
732
- enum: enum__,
733
- options,
734
- message,
735
- get "~standard"() {
736
- return /* @__PURE__ */ _getStandardProps(this);
737
- },
738
- "~run"(dataset, config2) {
739
- if (this.options.includes(dataset.value)) dataset.typed = true;
740
- else _addIssue(this, "type", dataset, config2);
741
- return dataset;
742
- }
743
- };
744
- }
745
- /* @__NO_SIDE_EFFECTS__ */
746
723
  function function_(message) {
747
724
  return {
748
725
  kind: "schema",
@@ -1803,7 +1780,7 @@ function getOutputCliKeys() {
1803
1780
  function getJsonSchema() {
1804
1781
  return toJsonSchema(CliOptionsSchema);
1805
1782
  }
1806
- var StringOrRegExpSchema, LogLevelSchema, LogLevelOptionSchema, LogLevelWithErrorSchema, RollupLogSchema, RollupLogWithStringSchema, InputOptionSchema, ExternalSchema, ModuleTypesSchema, JsxOptionsSchema, HelperModeSchema, DecoratorOptionSchema, HelpersSchema, RewriteImportExtensionsSchema, TypescriptSchema, AssumptionsSchema, TransformOptionsSchema, WatchOptionsSchema, ChecksOptionsSchema, MinifyOptionsSchema, ResolveOptionsSchema, TreeshakingOptionsSchema, OnLogSchema, OnwarnSchema, HmrSchema, InputOptionsSchema, InputCliOverrideSchema, InputCliOptionsSchema, ESTarget, ModuleFormatSchema, AddonFunctionSchema, ChunkFileNamesSchema, AssetFileNamesSchema, SanitizeFileNameSchema, GlobalsFunctionSchema, AdvancedChunksSchema, OutputOptionsSchema, getAddonDescription, OutputCliOverrideSchema, OutputCliOptionsSchema, CliOptionsSchema, inputHelperMsgRecord, outputHelperMsgRecord;
1783
+ var StringOrRegExpSchema, LogLevelSchema, LogLevelOptionSchema, LogLevelWithErrorSchema, RollupLogSchema, RollupLogWithStringSchema, InputOptionSchema, ExternalSchema, ModuleTypesSchema, JsxOptionsSchema, HelperModeSchema, DecoratorOptionSchema, HelpersSchema, RewriteImportExtensionsSchema, TypescriptSchema, AssumptionsSchema, TransformOptionsSchema, WatchOptionsSchema, ChecksOptionsSchema, MinifyOptionsSchema, ResolveOptionsSchema, TreeshakingOptionsSchema, OnLogSchema, OnwarnSchema, HmrSchema, InputOptionsSchema, InputCliOverrideSchema, InputCliOptionsSchema, ESTargetSchema, ModuleFormatSchema, AddonFunctionSchema, ChunkFileNamesSchema, AssetFileNamesSchema, SanitizeFileNameSchema, GlobalsFunctionSchema, AdvancedChunksSchema, OutputOptionsSchema, getAddonDescription, OutputCliOverrideSchema, OutputCliOptionsSchema, CliOptionsSchema, inputHelperMsgRecord, outputHelperMsgRecord;
1807
1784
  var init_validator = __esm({ "src/utils/validator.ts"() {
1808
1785
  init_dist$1();
1809
1786
  init_dist$2();
@@ -2011,21 +1988,20 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
2011
1988
  "profilerNames",
2012
1989
  "watch"
2013
1990
  ]);
2014
- ESTarget = /* @__PURE__ */ function(ESTarget$1) {
2015
- ESTarget$1["ES6"] = "es6";
2016
- ESTarget$1["ES2015"] = "es2015";
2017
- ESTarget$1["ES2016"] = "es2016";
2018
- ESTarget$1["ES2017"] = "es2017";
2019
- ESTarget$1["ES2018"] = "es2018";
2020
- ESTarget$1["ES2019"] = "es2019";
2021
- ESTarget$1["ES2020"] = "es2020";
2022
- ESTarget$1["ES2021"] = "es2021";
2023
- ESTarget$1["ES2022"] = "es2022";
2024
- ESTarget$1["ES2023"] = "es2023";
2025
- ESTarget$1["ES2024"] = "es2024";
2026
- ESTarget$1["ESNext"] = "esnext";
2027
- return ESTarget$1;
2028
- }(ESTarget || {});
1991
+ ESTargetSchema = union([
1992
+ literal("es6"),
1993
+ literal("es2015"),
1994
+ literal("es2016"),
1995
+ literal("es2017"),
1996
+ literal("es2018"),
1997
+ literal("es2019"),
1998
+ literal("es2020"),
1999
+ literal("es2021"),
2000
+ literal("es2022"),
2001
+ literal("es2023"),
2002
+ literal("es2024"),
2003
+ literal("esnext")
2004
+ ]);
2029
2005
  ModuleFormatSchema = union([
2030
2006
  literal("es"),
2031
2007
  literal("cjs"),
@@ -2105,7 +2081,7 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
2105
2081
  comments: pipe(optional(union([literal("none"), literal("preserve-legal")])), description("Control comments in the output")),
2106
2082
  plugins: optional(custom(() => true)),
2107
2083
  polyfillRequire: pipe(optional(boolean()), description("Disable require polyfill injection")),
2108
- target: pipe(optional(enum_(ESTarget)), description("The JavaScript target environment")),
2084
+ target: pipe(optional(ESTargetSchema), description("The JavaScript target environment")),
2109
2085
  hoistTransitiveImports: optional(custom((input) => {
2110
2086
  if (input) return false;
2111
2087
  return true;
@@ -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.ca23f2d";
12
+ var version = "1.0.0-beta.8-commit.8cce9fc";
13
13
  var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
14
14
 
15
15
  //#endregion
@@ -694,29 +694,6 @@ function custom(check2, message) {
694
694
  };
695
695
  }
696
696
  /* @__NO_SIDE_EFFECTS__ */
697
- function enum_(enum__, message) {
698
- const options = [];
699
- for (const key in enum__) if (`${+key}` !== key || typeof enum__[key] !== "string" || !Object.is(enum__[enum__[key]], +key)) options.push(enum__[key]);
700
- return {
701
- kind: "schema",
702
- type: "enum",
703
- reference: enum_,
704
- expects: /* @__PURE__ */ _joinExpects(options.map(_stringify), "|"),
705
- async: false,
706
- enum: enum__,
707
- options,
708
- message,
709
- get "~standard"() {
710
- return /* @__PURE__ */ _getStandardProps(this);
711
- },
712
- "~run"(dataset, config2) {
713
- if (this.options.includes(dataset.value)) dataset.typed = true;
714
- else _addIssue(this, "type", dataset, config2);
715
- return dataset;
716
- }
717
- };
718
- }
719
- /* @__NO_SIDE_EFFECTS__ */
720
697
  function function_(message) {
721
698
  return {
722
699
  kind: "schema",
@@ -1924,21 +1901,20 @@ const InputCliOptionsSchema = omit(strictObject({
1924
1901
  "profilerNames",
1925
1902
  "watch"
1926
1903
  ]);
1927
- var ESTarget = /* @__PURE__ */ function(ESTarget$1) {
1928
- ESTarget$1["ES6"] = "es6";
1929
- ESTarget$1["ES2015"] = "es2015";
1930
- ESTarget$1["ES2016"] = "es2016";
1931
- ESTarget$1["ES2017"] = "es2017";
1932
- ESTarget$1["ES2018"] = "es2018";
1933
- ESTarget$1["ES2019"] = "es2019";
1934
- ESTarget$1["ES2020"] = "es2020";
1935
- ESTarget$1["ES2021"] = "es2021";
1936
- ESTarget$1["ES2022"] = "es2022";
1937
- ESTarget$1["ES2023"] = "es2023";
1938
- ESTarget$1["ES2024"] = "es2024";
1939
- ESTarget$1["ESNext"] = "esnext";
1940
- return ESTarget$1;
1941
- }(ESTarget || {});
1904
+ const ESTargetSchema = union([
1905
+ literal("es6"),
1906
+ literal("es2015"),
1907
+ literal("es2016"),
1908
+ literal("es2017"),
1909
+ literal("es2018"),
1910
+ literal("es2019"),
1911
+ literal("es2020"),
1912
+ literal("es2021"),
1913
+ literal("es2022"),
1914
+ literal("es2023"),
1915
+ literal("es2024"),
1916
+ literal("esnext")
1917
+ ]);
1942
1918
  const ModuleFormatSchema = union([
1943
1919
  literal("es"),
1944
1920
  literal("cjs"),
@@ -2018,7 +1994,7 @@ const OutputOptionsSchema = strictObject({
2018
1994
  comments: pipe(optional(union([literal("none"), literal("preserve-legal")])), description("Control comments in the output")),
2019
1995
  plugins: optional(custom(() => true)),
2020
1996
  polyfillRequire: pipe(optional(boolean()), description("Disable require polyfill injection")),
2021
- target: pipe(optional(enum_(ESTarget)), description("The JavaScript target environment")),
1997
+ target: pipe(optional(ESTargetSchema), description("The JavaScript target environment")),
2022
1998
  hoistTransitiveImports: optional(custom((input) => {
2023
1999
  if (input) return false;
2024
2000
  return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rolldown/browser",
3
- "version": "1.0.0-beta.8-commit.ca23f2d",
3
+ "version": "1.0.0-beta.8-commit.8cce9fc",
4
4
  "description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
5
5
  "homepage": "https://rolldown.rs/",
6
6
  "type": "module",