rolldown 1.0.0-beta.6-commit.a250548 → 1.0.0-beta.6-commit.0fdc9f2

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/cjs/cli.cjs CHANGED
@@ -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-BUh0ZH7e.cjs');
4
- const require_parse_ast_index = require('../shared/parse-ast-index-BwtJmE6E.cjs');
3
+ const require_src = require('../shared/src-Cl1wUC1i.cjs');
4
+ const require_parse_ast_index = require('../shared/parse-ast-index-C8v5UEr2.cjs');
5
5
  const node_process = require_chunk.__toESM(require("node:process"));
6
6
  const node_path = require_chunk.__toESM(require("node:path"));
7
7
  const node_fs = require_chunk.__toESM(require("node:fs"));
@@ -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-BUh0ZH7e.cjs');
4
- const require_parse_ast_index = require('../shared/parse-ast-index-BwtJmE6E.cjs');
3
+ const require_src = require('../shared/src-Cl1wUC1i.cjs');
4
+ const require_parse_ast_index = require('../shared/parse-ast-index-C8v5UEr2.cjs');
5
5
  const node_url = require_chunk.__toESM(require("node:url"));
6
6
 
7
7
  //#region src/plugin/parallel-plugin.ts
@@ -1,5 +1,5 @@
1
- const require_src = require('../shared/src-BUh0ZH7e.cjs');
2
- require('../shared/parse-ast-index-BwtJmE6E.cjs');
1
+ const require_src = require('../shared/src-Cl1wUC1i.cjs');
2
+ require('../shared/parse-ast-index-C8v5UEr2.cjs');
3
3
 
4
4
  exports.VERSION = require_src.VERSION
5
5
  exports.build = require_src.build
@@ -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-BUh0ZH7e.cjs');
4
- const require_parse_ast_index = require('../shared/parse-ast-index-BwtJmE6E.cjs');
3
+ const require_src = require('../shared/src-Cl1wUC1i.cjs');
4
+ const require_parse_ast_index = require('../shared/parse-ast-index-C8v5UEr2.cjs');
5
5
  const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
6
6
 
7
7
  //#region src/parallel-plugin-worker.ts
@@ -1,4 +1,4 @@
1
- const require_parse_ast_index = require('../shared/parse-ast-index-BwtJmE6E.cjs');
1
+ const require_parse_ast_index = require('../shared/parse-ast-index-C8v5UEr2.cjs');
2
2
 
3
3
  exports.parseAst = require_parse_ast_index.parseAst
4
4
  exports.parseAstAsync = require_parse_ast_index.parseAstAsync
package/dist/esm/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { colors } from "../shared/parse-ast-index-DFeQGWCn.mjs";
2
- import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "../shared/src-BqXd4OR3.mjs";
1
+ import { colors } from "../shared/parse-ast-index-BN2JFoRu.mjs";
2
+ import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "../shared/src-Dt33DQSB.mjs";
3
3
  import process$1, { cwd } from "node:process";
4
4
  import path, { sep } from "node:path";
5
5
  import fs from "node:fs";
@@ -1,5 +1,5 @@
1
- import { import_binding } from "../shared/parse-ast-index-DFeQGWCn.mjs";
2
- import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "../shared/src-BqXd4OR3.mjs";
1
+ import { import_binding } from "../shared/parse-ast-index-BN2JFoRu.mjs";
2
+ import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "../shared/src-Dt33DQSB.mjs";
3
3
  import { pathToFileURL } from "node:url";
4
4
 
5
5
  //#region src/plugin/parallel-plugin.ts
@@ -1,4 +1,4 @@
1
- import "../shared/parse-ast-index-DFeQGWCn.mjs";
2
- import { VERSION, build, defineConfig, rolldown, watch } from "../shared/src-BqXd4OR3.mjs";
1
+ import "../shared/parse-ast-index-BN2JFoRu.mjs";
2
+ import { VERSION, build, defineConfig, rolldown, watch } from "../shared/src-Dt33DQSB.mjs";
3
3
 
4
4
  export { VERSION, build, defineConfig, rolldown, watch };
@@ -1,5 +1,5 @@
1
- import { import_binding } from "../shared/parse-ast-index-DFeQGWCn.mjs";
2
- import { PluginContextData, bindingifyPlugin } from "../shared/src-BqXd4OR3.mjs";
1
+ import { import_binding } from "../shared/parse-ast-index-BN2JFoRu.mjs";
2
+ import { PluginContextData, bindingifyPlugin } from "../shared/src-Dt33DQSB.mjs";
3
3
  import { parentPort, workerData } from "node:worker_threads";
4
4
 
5
5
  //#region src/parallel-plugin-worker.ts
@@ -1,3 +1,3 @@
1
- import { parseAst, parseAstAsync } from "../shared/parse-ast-index-DFeQGWCn.mjs";
1
+ import { parseAst, parseAstAsync } from "../shared/parse-ast-index-BN2JFoRu.mjs";
2
2
 
3
3
  export { parseAst, parseAstAsync };
@@ -615,23 +615,12 @@ var require_binding = __commonJS({ "src/binding.js"(exports, module) {
615
615
  var import_binding = __toESM(require_binding());
616
616
 
617
617
  //#endregion
618
- //#region ../../node_modules/.pnpm/oxc-parser@0.60.0/node_modules/oxc-parser/wrap.mjs
618
+ //#region ../../node_modules/.pnpm/oxc-parser@0.61.2/node_modules/oxc-parser/wrap.mjs
619
619
  function wrap$1(result) {
620
620
  let program, module$1, comments, errors;
621
621
  return {
622
622
  get program() {
623
- if (!program) program = JSON.parse(result.program, function(key, value) {
624
- if (value === null && key === "value" && Object.hasOwn(this, "type") && this.type === "Literal") {
625
- if (Object.hasOwn(this, "bigint")) return BigInt(this.bigint);
626
- if (Object.hasOwn(this, "regex")) {
627
- const { regex } = this;
628
- try {
629
- return RegExp(regex.pattern, regex.flags);
630
- } catch (_err) {}
631
- }
632
- }
633
- return value;
634
- });
623
+ if (!program) program = jsonParseAst(result.program);
635
624
  return program;
636
625
  },
637
626
  get module() {
@@ -648,6 +637,20 @@ function wrap$1(result) {
648
637
  }
649
638
  };
650
639
  }
640
+ function jsonParseAst(ast) {
641
+ return JSON.parse(ast, function(key, value) {
642
+ if (value === null && key === "value" && Object.hasOwn(this, "type") && this.type === "Literal") {
643
+ if (Object.hasOwn(this, "bigint")) return BigInt(this.bigint);
644
+ if (Object.hasOwn(this, "regex")) {
645
+ const { regex } = this;
646
+ try {
647
+ return RegExp(regex.pattern, regex.flags);
648
+ } catch (_err) {}
649
+ }
650
+ }
651
+ return value;
652
+ });
653
+ }
651
654
 
652
655
  //#endregion
653
656
  //#region src/parse-ast-index.ts
@@ -589,23 +589,12 @@ var require_binding = require_chunk.__commonJS({ "src/binding.js"(exports, modul
589
589
  var import_binding = require_chunk.__toESM(require_binding());
590
590
 
591
591
  //#endregion
592
- //#region ../../node_modules/.pnpm/oxc-parser@0.60.0/node_modules/oxc-parser/wrap.mjs
592
+ //#region ../../node_modules/.pnpm/oxc-parser@0.61.2/node_modules/oxc-parser/wrap.mjs
593
593
  function wrap$1(result) {
594
594
  let program, module$1, comments, errors;
595
595
  return {
596
596
  get program() {
597
- if (!program) program = JSON.parse(result.program, function(key, value) {
598
- if (value === null && key === "value" && Object.hasOwn(this, "type") && this.type === "Literal") {
599
- if (Object.hasOwn(this, "bigint")) return BigInt(this.bigint);
600
- if (Object.hasOwn(this, "regex")) {
601
- const { regex } = this;
602
- try {
603
- return RegExp(regex.pattern, regex.flags);
604
- } catch (_err) {}
605
- }
606
- }
607
- return value;
608
- });
597
+ if (!program) program = jsonParseAst(result.program);
609
598
  return program;
610
599
  },
611
600
  get module() {
@@ -622,6 +611,20 @@ function wrap$1(result) {
622
611
  }
623
612
  };
624
613
  }
614
+ function jsonParseAst(ast) {
615
+ return JSON.parse(ast, function(key, value) {
616
+ if (value === null && key === "value" && Object.hasOwn(this, "type") && this.type === "Literal") {
617
+ if (Object.hasOwn(this, "bigint")) return BigInt(this.bigint);
618
+ if (Object.hasOwn(this, "regex")) {
619
+ const { regex } = this;
620
+ try {
621
+ return RegExp(regex.pattern, regex.flags);
622
+ } catch (_err) {}
623
+ }
624
+ }
625
+ return value;
626
+ });
627
+ }
625
628
 
626
629
  //#endregion
627
630
  //#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-BwtJmE6E.cjs');
3
+ const require_parse_ast_index = require('./parse-ast-index-C8v5UEr2.cjs');
4
4
  const node_path = require_chunk.__toESM(require("node:path"));
5
5
  const valibot = require_chunk.__toESM(require("valibot"));
6
6
  const __valibot_to_json_schema = require_chunk.__toESM(require("@valibot/to-json-schema"));
@@ -2861,7 +2861,7 @@ const watch = (input) => {
2861
2861
 
2862
2862
  //#endregion
2863
2863
  //#region package.json
2864
- var version = "1.0.0-beta.6-commit.a250548";
2864
+ var version = "1.0.0-beta.6-commit.0fdc9f2";
2865
2865
  var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
2866
2866
 
2867
2867
  //#endregion
@@ -1,4 +1,4 @@
1
- import { augmentCodeLocation, colors, error, import_binding, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMinifyWarning, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-DFeQGWCn.mjs";
1
+ import { augmentCodeLocation, colors, error, import_binding, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMinifyWarning, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-BN2JFoRu.mjs";
2
2
  import path from "node:path";
3
3
  import * as v from "valibot";
4
4
  import { toJsonSchema } from "@valibot/to-json-schema";
@@ -2859,7 +2859,7 @@ const watch = (input) => {
2859
2859
 
2860
2860
  //#endregion
2861
2861
  //#region package.json
2862
- var version = "1.0.0-beta.6-commit.a250548";
2862
+ var version = "1.0.0-beta.6-commit.0fdc9f2";
2863
2863
  var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
2864
2864
 
2865
2865
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rolldown",
3
- "version": "1.0.0-beta.6-commit.a250548",
3
+ "version": "1.0.0-beta.6-commit.0fdc9f2",
4
4
  "description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
5
5
  "homepage": "https://rolldown.rs/",
6
6
  "repository": {
@@ -85,8 +85,8 @@
85
85
  },
86
86
  "dependencies": {
87
87
  "@oxc-project/types": "0.61.2",
88
- "@valibot/to-json-schema": "1.0.0-rc.0",
89
- "valibot": "1.0.0-rc.4"
88
+ "@valibot/to-json-schema": "1.0.0",
89
+ "valibot": "1.0.0"
90
90
  },
91
91
  "peerDependencies": {
92
92
  "@oxc-project/runtime": "0.61.2"
@@ -111,7 +111,7 @@
111
111
  "glob": "^11.0.0",
112
112
  "locate-character": "^3.0.0",
113
113
  "npm-run-all2": "^7.0.0",
114
- "oxc-parser": "^0.60.0",
114
+ "oxc-parser": "^0.61.0",
115
115
  "remeda": "^2.10.0",
116
116
  "rollup": "^4.18.0",
117
117
  "signal-exit": "4.1.0",
@@ -122,22 +122,22 @@
122
122
  "typescript": "^5.7.3",
123
123
  "unbuild": "^3.0.0",
124
124
  "why-is-node-running": "^3.0.0",
125
- "rolldown": "1.0.0-beta.6-commit.a250548",
126
- "@rolldown/testing": "0.0.1"
125
+ "@rolldown/testing": "0.0.1",
126
+ "rolldown": "1.0.0-beta.6-commit.0fdc9f2"
127
127
  },
128
128
  "optionalDependencies": {
129
- "@rolldown/binding-darwin-arm64": "1.0.0-beta.6-commit.a250548",
130
- "@rolldown/binding-darwin-x64": "1.0.0-beta.6-commit.a250548",
131
- "@rolldown/binding-freebsd-x64": "1.0.0-beta.6-commit.a250548",
132
- "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.6-commit.a250548",
133
- "@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.6-commit.a250548",
134
- "@rolldown/binding-linux-arm64-musl": "1.0.0-beta.6-commit.a250548",
135
- "@rolldown/binding-linux-x64-gnu": "1.0.0-beta.6-commit.a250548",
136
- "@rolldown/binding-linux-x64-musl": "1.0.0-beta.6-commit.a250548",
137
- "@rolldown/binding-wasm32-wasi": "1.0.0-beta.6-commit.a250548",
138
- "@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.6-commit.a250548",
139
- "@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.6-commit.a250548",
140
- "@rolldown/binding-win32-x64-msvc": "1.0.0-beta.6-commit.a250548"
129
+ "@rolldown/binding-darwin-x64": "1.0.0-beta.6-commit.0fdc9f2",
130
+ "@rolldown/binding-freebsd-x64": "1.0.0-beta.6-commit.0fdc9f2",
131
+ "@rolldown/binding-darwin-arm64": "1.0.0-beta.6-commit.0fdc9f2",
132
+ "@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.6-commit.0fdc9f2",
133
+ "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.6-commit.0fdc9f2",
134
+ "@rolldown/binding-linux-arm64-musl": "1.0.0-beta.6-commit.0fdc9f2",
135
+ "@rolldown/binding-linux-x64-gnu": "1.0.0-beta.6-commit.0fdc9f2",
136
+ "@rolldown/binding-linux-x64-musl": "1.0.0-beta.6-commit.0fdc9f2",
137
+ "@rolldown/binding-wasm32-wasi": "1.0.0-beta.6-commit.0fdc9f2",
138
+ "@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.6-commit.0fdc9f2",
139
+ "@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.6-commit.0fdc9f2",
140
+ "@rolldown/binding-win32-x64-msvc": "1.0.0-beta.6-commit.0fdc9f2"
141
141
  },
142
142
  "scripts": {
143
143
  "# Scrips for binding #": "_",