rolldown 1.0.0-beta.7-commit.30e0395 → 1.0.0-beta.8

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-DGExB9Ec.cjs');
3
- require('./shared/parse-ast-index-BASfkmHa.cjs');
2
+ const require_src = require('./shared/src-DStBvZXC.cjs');
3
+ require('./shared/parse-ast-index-Dfo0zI2n.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"));
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-DmUtCHjS.mjs";
3
- import "./shared/parse-ast-index-BnwsxKz6.mjs";
2
+ import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_misc, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-BHF9qaCH.mjs";
3
+ import "./shared/parse-ast-index-83yhN6Wa.mjs";
4
4
  import fs from "node:fs";
5
5
  import path, { sep } from "node:path";
6
6
  import colors from "ansis";
@@ -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-DGExB9Ec.cjs');
4
- const require_parse_ast_index = require('./shared/parse-ast-index-BASfkmHa.cjs');
3
+ const require_src = require('./shared/src-DStBvZXC.cjs');
4
+ const require_parse_ast_index = require('./shared/parse-ast-index-Dfo0zI2n.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 { 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-DmUtCHjS.mjs";
2
- import { import_binding } from "./shared/parse-ast-index-BnwsxKz6.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-BHF9qaCH.mjs";
2
+ import { import_binding } from "./shared/parse-ast-index-83yhN6Wa.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-DGExB9Ec.cjs');
2
- require('./shared/parse-ast-index-BASfkmHa.cjs');
1
+ const require_src = require('./shared/src-DStBvZXC.cjs');
2
+ require('./shared/parse-ast-index-Dfo0zI2n.cjs');
3
3
 
4
4
  exports.VERSION = require_src.VERSION
5
5
  exports.build = require_src.build
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { VERSION, build, defineConfig, init_src, rolldown, watch, withFilter } from "./shared/src-DmUtCHjS.mjs";
2
- import "./shared/parse-ast-index-BnwsxKz6.mjs";
1
+ import { VERSION, build, defineConfig, init_src, rolldown, watch, withFilter } from "./shared/src-BHF9qaCH.mjs";
2
+ import "./shared/parse-ast-index-83yhN6Wa.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-DGExB9Ec.cjs');
3
- const require_parse_ast_index = require('./shared/parse-ast-index-BASfkmHa.cjs');
2
+ const require_src = require('./shared/src-DStBvZXC.cjs');
3
+ const require_parse_ast_index = require('./shared/parse-ast-index-Dfo0zI2n.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-DmUtCHjS.mjs";
3
- import { import_binding } from "./shared/parse-ast-index-BnwsxKz6.mjs";
2
+ import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-BHF9qaCH.mjs";
3
+ import { import_binding } from "./shared/parse-ast-index-83yhN6Wa.mjs";
4
4
  import { parentPort, workerData } from "node:worker_threads";
5
5
 
6
6
  //#region src/parallel-plugin-worker.ts
@@ -1,4 +1,4 @@
1
- const require_parse_ast_index = require('./shared/parse-ast-index-BASfkmHa.cjs');
1
+ const require_parse_ast_index = require('./shared/parse-ast-index-Dfo0zI2n.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 { init_parse_ast_index, parseAst, parseAstAsync } from "./shared/parse-ast-index-BnwsxKz6.mjs";
1
+ import { init_parse_ast_index, parseAst, parseAstAsync } from "./shared/parse-ast-index-83yhN6Wa.mjs";
2
2
 
3
3
  init_parse_ast_index();
4
4
  export { parseAst, parseAstAsync };
@@ -1,5 +1,4 @@
1
1
  import { __commonJS, __esm, __require, __toESM } from "./chunk-DUYDk_2O.mjs";
2
- import colors from "ansis";
3
2
 
4
3
  //#region src/webcontainer-fallback.js
5
4
  var require_webcontainer_fallback = __commonJS({ "src/webcontainer-fallback.js"(exports, module) {
@@ -483,12 +482,6 @@ function logParseError(message) {
483
482
  message
484
483
  };
485
484
  }
486
- function logMinifyWarning() {
487
- return {
488
- code: MINIFY_WARNING,
489
- message: colors.yellow("The built-in minifier is still under development. Setting \"minify: true\" is not recommended for production use.")
490
- };
491
- }
492
485
  function logInvalidLogPosition(pluginName) {
493
486
  return {
494
487
  code: INVALID_LOG_POSITION,
@@ -556,11 +549,11 @@ function augmentCodeLocation(properties, pos, source, id) {
556
549
  properties.frame = getCodeFrame(source, line, column);
557
550
  }
558
551
  }
559
- var INVALID_LOG_POSITION, PLUGIN_ERROR, INPUT_HOOK_IN_OUTPUT_PLUGIN, CYCLE_LOADING, MULTIPLY_NOTIFY_OPTION, MINIFY_WARNING, PARSE_ERROR;
552
+ var INVALID_LOG_POSITION, PLUGIN_ERROR, INPUT_HOOK_IN_OUTPUT_PLUGIN, CYCLE_LOADING, MULTIPLY_NOTIFY_OPTION, PARSE_ERROR;
560
553
  var init_logs = __esm({ "src/log/logs.ts"() {
561
554
  init_code_frame();
562
555
  init_locate_character();
563
- INVALID_LOG_POSITION = "INVALID_LOG_POSITION", PLUGIN_ERROR = "PLUGIN_ERROR", INPUT_HOOK_IN_OUTPUT_PLUGIN = "INPUT_HOOK_IN_OUTPUT_PLUGIN", CYCLE_LOADING = "CYCLE_LOADING", MULTIPLY_NOTIFY_OPTION = "MULTIPLY_NOTIFY_OPTION", MINIFY_WARNING = "MINIFY_WARNING", PARSE_ERROR = "PARSE_ERROR";
556
+ INVALID_LOG_POSITION = "INVALID_LOG_POSITION", PLUGIN_ERROR = "PLUGIN_ERROR", INPUT_HOOK_IN_OUTPUT_PLUGIN = "INPUT_HOOK_IN_OUTPUT_PLUGIN", CYCLE_LOADING = "CYCLE_LOADING", MULTIPLY_NOTIFY_OPTION = "MULTIPLY_NOTIFY_OPTION", PARSE_ERROR = "PARSE_ERROR";
564
557
  } });
565
558
 
566
559
  //#endregion
@@ -650,4 +643,4 @@ var init_parse_ast_index = __esm({ "src/parse-ast-index.ts"() {
650
643
  } });
651
644
 
652
645
  //#endregion
653
- export { augmentCodeLocation, error, import_binding, init_logs, init_parse_ast_index, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMinifyWarning, logMultiplyNotifyOption, logPluginError, parseAst, parseAstAsync };
646
+ export { augmentCodeLocation, error, import_binding, init_logs, init_parse_ast_index, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst, parseAstAsync };
@@ -1,5 +1,4 @@
1
1
  const require_chunk = require('./chunk-qZFfknuJ.cjs');
2
- const ansis = require_chunk.__toESM(require("ansis"));
3
2
 
4
3
  //#region src/webcontainer-fallback.js
5
4
  var require_webcontainer_fallback = require_chunk.__commonJS({ "src/webcontainer-fallback.js"(exports, module) {
@@ -473,19 +472,13 @@ function locate(source, search, options) {
473
472
 
474
473
  //#endregion
475
474
  //#region src/log/logs.ts
476
- const INVALID_LOG_POSITION = "INVALID_LOG_POSITION", PLUGIN_ERROR = "PLUGIN_ERROR", INPUT_HOOK_IN_OUTPUT_PLUGIN = "INPUT_HOOK_IN_OUTPUT_PLUGIN", CYCLE_LOADING = "CYCLE_LOADING", MULTIPLY_NOTIFY_OPTION = "MULTIPLY_NOTIFY_OPTION", MINIFY_WARNING = "MINIFY_WARNING", PARSE_ERROR = "PARSE_ERROR";
475
+ const INVALID_LOG_POSITION = "INVALID_LOG_POSITION", PLUGIN_ERROR = "PLUGIN_ERROR", INPUT_HOOK_IN_OUTPUT_PLUGIN = "INPUT_HOOK_IN_OUTPUT_PLUGIN", CYCLE_LOADING = "CYCLE_LOADING", MULTIPLY_NOTIFY_OPTION = "MULTIPLY_NOTIFY_OPTION", PARSE_ERROR = "PARSE_ERROR";
477
476
  function logParseError(message) {
478
477
  return {
479
478
  code: PARSE_ERROR,
480
479
  message
481
480
  };
482
481
  }
483
- function logMinifyWarning() {
484
- return {
485
- code: MINIFY_WARNING,
486
- message: ansis.default.yellow("The built-in minifier is still under development. Setting \"minify: true\" is not recommended for production use.")
487
- };
488
- }
489
482
  function logInvalidLogPosition(pluginName) {
490
483
  return {
491
484
  code: INVALID_LOG_POSITION,
@@ -669,12 +662,6 @@ Object.defineProperty(exports, 'logInvalidLogPosition', {
669
662
  return logInvalidLogPosition;
670
663
  }
671
664
  });
672
- Object.defineProperty(exports, 'logMinifyWarning', {
673
- enumerable: true,
674
- get: function () {
675
- return logMinifyWarning;
676
- }
677
- });
678
665
  Object.defineProperty(exports, 'logMultiplyNotifyOption', {
679
666
  enumerable: true,
680
667
  get: function () {
@@ -1,14 +1,14 @@
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-BnwsxKz6.mjs";
2
+ import { augmentCodeLocation, error, import_binding, init_logs, init_parse_ast_index, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-83yhN6Wa.mjs";
3
3
  import path from "node:path";
4
- import colors from "ansis";
5
4
  import { toJsonSchema } from "@valibot/to-json-schema";
5
+ import colors from "ansis";
6
6
  import * as v from "valibot";
7
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.30e0395";
11
+ var version = "1.0.0-beta.8";
12
12
  var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
13
13
 
14
14
  //#endregion
@@ -4094,7 +4094,6 @@ async function createBundlerOptions(inputOptions, outputOptions, watchMode, isCl
4094
4094
  const logLevel = inputOptions.logLevel || LOG_LEVEL_INFO;
4095
4095
  const onLog = getLogger(getObjectPlugins(inputPlugins), getOnLog(inputOptions, logLevel), logLevel, watchMode);
4096
4096
  if (!isClose) outputOptions = PluginDriver.callOutputOptionsHook([...inputPlugins, ...outputPlugins], outputOptions, onLog, logLevel, watchMode);
4097
- if (outputOptions.minify === true) onLog(LOG_LEVEL_WARN, logMinifyWarning());
4098
4097
  const normalizedOutputPlugins = await normalizePluginOption(outputOptions.plugins);
4099
4098
  let plugins = [...normalizePlugins(inputPlugins, ANONYMOUS_PLUGIN_PREFIX), ...checkOutputPluginOption(normalizePlugins(normalizedOutputPlugins, ANONYMOUS_OUTPUT_PLUGIN_PREFIX), onLog)];
4100
4099
  if (inputOptions.experimental?.enableComposingJsPlugins ?? false) plugins = composeJsPlugins(plugins);
@@ -4120,7 +4119,6 @@ async function createBundlerOptions(inputOptions, outputOptions, watchMode, isCl
4120
4119
  var init_create_bundler_option = __esm({ "src/utils/create-bundler-option.ts"() {
4121
4120
  init_logger();
4122
4121
  init_logging();
4123
- init_logs();
4124
4122
  init_plugin_driver();
4125
4123
  init_bindingify_input_options();
4126
4124
  init_bindingify_output_options();
@@ -1,15 +1,15 @@
1
1
  "use strict";
2
2
  const require_chunk = require('./chunk-qZFfknuJ.cjs');
3
- const require_parse_ast_index = require('./parse-ast-index-BASfkmHa.cjs');
3
+ const require_parse_ast_index = require('./parse-ast-index-Dfo0zI2n.cjs');
4
4
  const node_path = require_chunk.__toESM(require("node:path"));
5
- const ansis = require_chunk.__toESM(require("ansis"));
6
5
  const __valibot_to_json_schema = require_chunk.__toESM(require("@valibot/to-json-schema"));
6
+ const ansis = require_chunk.__toESM(require("ansis"));
7
7
  const valibot = require_chunk.__toESM(require("valibot"));
8
8
  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.30e0395";
12
+ var version = "1.0.0-beta.8";
13
13
  var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
14
14
 
15
15
  //#endregion
@@ -2752,7 +2752,6 @@ async function createBundlerOptions(inputOptions, outputOptions, watchMode, isCl
2752
2752
  const logLevel = inputOptions.logLevel || LOG_LEVEL_INFO;
2753
2753
  const onLog = getLogger(getObjectPlugins(inputPlugins), getOnLog(inputOptions, logLevel), logLevel, watchMode);
2754
2754
  if (!isClose) outputOptions = PluginDriver.callOutputOptionsHook([...inputPlugins, ...outputPlugins], outputOptions, onLog, logLevel, watchMode);
2755
- if (outputOptions.minify === true) onLog(LOG_LEVEL_WARN, require_parse_ast_index.logMinifyWarning());
2756
2755
  const normalizedOutputPlugins = await normalizePluginOption(outputOptions.plugins);
2757
2756
  let plugins = [...normalizePlugins(inputPlugins, ANONYMOUS_PLUGIN_PREFIX), ...checkOutputPluginOption(normalizePlugins(normalizedOutputPlugins, ANONYMOUS_OUTPUT_PLUGIN_PREFIX), onLog)];
2758
2757
  if (inputOptions.experimental?.enableComposingJsPlugins ?? false) plugins = composeJsPlugins(plugins);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rolldown",
3
- "version": "1.0.0-beta.7-commit.30e0395",
3
+ "version": "1.0.0-beta.8",
4
4
  "description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
5
5
  "type": "commonjs",
6
6
  "homepage": "https://rolldown.rs/",
@@ -119,22 +119,22 @@
119
119
  "typedoc": "^0.28.0",
120
120
  "typescript": "^5.7.3",
121
121
  "unbuild": "^3.0.0",
122
- "rolldown": "1.0.0-beta.7-commit.30e0395",
123
- "@rolldown/testing": "0.0.1"
122
+ "@rolldown/testing": "0.0.1",
123
+ "rolldown": "1.0.0-beta.8"
124
124
  },
125
125
  "optionalDependencies": {
126
- "@rolldown/binding-darwin-x64": "1.0.0-beta.7-commit.30e0395",
127
- "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.7-commit.30e0395",
128
- "@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.7-commit.30e0395",
129
- "@rolldown/binding-freebsd-x64": "1.0.0-beta.7-commit.30e0395",
130
- "@rolldown/binding-linux-x64-gnu": "1.0.0-beta.7-commit.30e0395",
131
- "@rolldown/binding-linux-x64-musl": "1.0.0-beta.7-commit.30e0395",
132
- "@rolldown/binding-wasm32-wasi": "1.0.0-beta.7-commit.30e0395",
133
- "@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.7-commit.30e0395",
134
- "@rolldown/binding-darwin-arm64": "1.0.0-beta.7-commit.30e0395",
135
- "@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.7-commit.30e0395",
136
- "@rolldown/binding-win32-x64-msvc": "1.0.0-beta.7-commit.30e0395",
137
- "@rolldown/binding-linux-arm64-musl": "1.0.0-beta.7-commit.30e0395"
126
+ "@rolldown/binding-darwin-arm64": "1.0.0-beta.8",
127
+ "@rolldown/binding-darwin-x64": "1.0.0-beta.8",
128
+ "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.8",
129
+ "@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.8",
130
+ "@rolldown/binding-freebsd-x64": "1.0.0-beta.8",
131
+ "@rolldown/binding-linux-arm64-musl": "1.0.0-beta.8",
132
+ "@rolldown/binding-linux-x64-gnu": "1.0.0-beta.8",
133
+ "@rolldown/binding-wasm32-wasi": "1.0.0-beta.8",
134
+ "@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.8",
135
+ "@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.8",
136
+ "@rolldown/binding-win32-x64-msvc": "1.0.0-beta.8",
137
+ "@rolldown/binding-linux-x64-musl": "1.0.0-beta.8"
138
138
  },
139
139
  "scripts": {
140
140
  "# Scrips for binding #": "_",