rolldown 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/cli.cjs +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/experimental-index.cjs +1 -1
- package/dist/experimental-index.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/parallel-plugin-worker.cjs +1 -1
- package/dist/parallel-plugin-worker.mjs +1 -1
- package/dist/shared/{src-CixtxK0G.mjs → src-BtfeC_wV.mjs} +17 -41
- package/dist/shared/{src-3Gumg_wy.cjs → src-CZ7Xl4Cl.cjs} +16 -40
- package/package.json +18 -18
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-
|
|
2
|
+
const require_src = require('./shared/src-CZ7Xl4Cl.cjs');
|
|
3
3
|
require('./shared/parse-ast-index-Bbz37LOL.cjs');
|
|
4
4
|
const require_filter_index = require('./shared/filter-index-DblXSw9s.cjs');
|
|
5
5
|
const node_fs = require_chunk.__toESM(require("node:fs"));
|
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __commonJS, __esm, __toESM } from "./shared/chunk-DUYDk_2O.mjs";
|
|
2
|
-
import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-
|
|
2
|
+
import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-BtfeC_wV.mjs";
|
|
3
3
|
import "./shared/parse-ast-index-D0SmlXT6.mjs";
|
|
4
4
|
import { arraify, init_misc } from "./shared/filter-index-hnEzlqRW.mjs";
|
|
5
5
|
import fs from "node:fs";
|
|
@@ -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-
|
|
3
|
+
const require_src = require('./shared/src-CZ7Xl4Cl.cjs');
|
|
4
4
|
const require_parse_ast_index = require('./shared/parse-ast-index-Bbz37LOL.cjs');
|
|
5
5
|
require('./shared/filter-index-DblXSw9s.cjs');
|
|
6
6
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
@@ -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-
|
|
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-BtfeC_wV.mjs";
|
|
2
2
|
import { import_binding } from "./shared/parse-ast-index-D0SmlXT6.mjs";
|
|
3
3
|
import "./shared/filter-index-hnEzlqRW.mjs";
|
|
4
4
|
import { pathToFileURL } from "node:url";
|
package/dist/index.cjs
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-
|
|
1
|
+
import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-BtfeC_wV.mjs";
|
|
2
2
|
import "./shared/parse-ast-index-D0SmlXT6.mjs";
|
|
3
3
|
import "./shared/filter-index-hnEzlqRW.mjs";
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
2
|
+
const require_src = require('./shared/src-CZ7Xl4Cl.cjs');
|
|
3
3
|
const require_parse_ast_index = require('./shared/parse-ast-index-Bbz37LOL.cjs');
|
|
4
4
|
require('./shared/filter-index-DblXSw9s.cjs');
|
|
5
5
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __commonJS } from "./shared/chunk-DUYDk_2O.mjs";
|
|
2
|
-
import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-
|
|
2
|
+
import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-BtfeC_wV.mjs";
|
|
3
3
|
import { import_binding } from "./shared/parse-ast-index-D0SmlXT6.mjs";
|
|
4
4
|
import "./shared/filter-index-hnEzlqRW.mjs";
|
|
5
5
|
import { parentPort, workerData } from "node:worker_threads";
|
|
@@ -7,7 +7,7 @@ import { availableParallelism } from "node:os";
|
|
|
7
7
|
import { Worker } from "node:worker_threads";
|
|
8
8
|
|
|
9
9
|
//#region package.json
|
|
10
|
-
var version = "1.0.0-beta.8-commit.
|
|
10
|
+
var version = "1.0.0-beta.8-commit.8cce9fc";
|
|
11
11
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
12
12
|
|
|
13
13
|
//#endregion
|
|
@@ -719,29 +719,6 @@ function custom(check2, message) {
|
|
|
719
719
|
};
|
|
720
720
|
}
|
|
721
721
|
/* @__NO_SIDE_EFFECTS__ */
|
|
722
|
-
function enum_(enum__, message) {
|
|
723
|
-
const options = [];
|
|
724
|
-
for (const key in enum__) if (`${+key}` !== key || typeof enum__[key] !== "string" || !Object.is(enum__[enum__[key]], +key)) options.push(enum__[key]);
|
|
725
|
-
return {
|
|
726
|
-
kind: "schema",
|
|
727
|
-
type: "enum",
|
|
728
|
-
reference: enum_,
|
|
729
|
-
expects: /* @__PURE__ */ _joinExpects(options.map(_stringify), "|"),
|
|
730
|
-
async: false,
|
|
731
|
-
enum: enum__,
|
|
732
|
-
options,
|
|
733
|
-
message,
|
|
734
|
-
get "~standard"() {
|
|
735
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
736
|
-
},
|
|
737
|
-
"~run"(dataset, config2) {
|
|
738
|
-
if (this.options.includes(dataset.value)) dataset.typed = true;
|
|
739
|
-
else _addIssue(this, "type", dataset, config2);
|
|
740
|
-
return dataset;
|
|
741
|
-
}
|
|
742
|
-
};
|
|
743
|
-
}
|
|
744
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
745
722
|
function function_(message) {
|
|
746
723
|
return {
|
|
747
724
|
kind: "schema",
|
|
@@ -1802,7 +1779,7 @@ function getOutputCliKeys() {
|
|
|
1802
1779
|
function getJsonSchema() {
|
|
1803
1780
|
return toJsonSchema(CliOptionsSchema);
|
|
1804
1781
|
}
|
|
1805
|
-
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,
|
|
1782
|
+
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;
|
|
1806
1783
|
var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
1807
1784
|
init_dist$1();
|
|
1808
1785
|
init_dist$2();
|
|
@@ -2010,21 +1987,20 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
2010
1987
|
"profilerNames",
|
|
2011
1988
|
"watch"
|
|
2012
1989
|
]);
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
}(ESTarget || {});
|
|
1990
|
+
ESTargetSchema = union([
|
|
1991
|
+
literal("es6"),
|
|
1992
|
+
literal("es2015"),
|
|
1993
|
+
literal("es2016"),
|
|
1994
|
+
literal("es2017"),
|
|
1995
|
+
literal("es2018"),
|
|
1996
|
+
literal("es2019"),
|
|
1997
|
+
literal("es2020"),
|
|
1998
|
+
literal("es2021"),
|
|
1999
|
+
literal("es2022"),
|
|
2000
|
+
literal("es2023"),
|
|
2001
|
+
literal("es2024"),
|
|
2002
|
+
literal("esnext")
|
|
2003
|
+
]);
|
|
2028
2004
|
ModuleFormatSchema = union([
|
|
2029
2005
|
literal("es"),
|
|
2030
2006
|
literal("cjs"),
|
|
@@ -2104,7 +2080,7 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
2104
2080
|
comments: pipe(optional(union([literal("none"), literal("preserve-legal")])), description("Control comments in the output")),
|
|
2105
2081
|
plugins: optional(custom(() => true)),
|
|
2106
2082
|
polyfillRequire: pipe(optional(boolean()), description("Disable require polyfill injection")),
|
|
2107
|
-
target: pipe(optional(
|
|
2083
|
+
target: pipe(optional(ESTargetSchema), description("The JavaScript target environment")),
|
|
2108
2084
|
hoistTransitiveImports: optional(custom((input) => {
|
|
2109
2085
|
if (input) return false;
|
|
2110
2086
|
return true;
|
|
@@ -8,7 +8,7 @@ const node_os = require_chunk.__toESM(require("node:os"));
|
|
|
8
8
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
9
9
|
|
|
10
10
|
//#region package.json
|
|
11
|
-
var version = "1.0.0-beta.8-commit.
|
|
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
|
|
@@ -693,29 +693,6 @@ function custom(check2, message) {
|
|
|
693
693
|
};
|
|
694
694
|
}
|
|
695
695
|
/* @__NO_SIDE_EFFECTS__ */
|
|
696
|
-
function enum_(enum__, message) {
|
|
697
|
-
const options = [];
|
|
698
|
-
for (const key in enum__) if (`${+key}` !== key || typeof enum__[key] !== "string" || !Object.is(enum__[enum__[key]], +key)) options.push(enum__[key]);
|
|
699
|
-
return {
|
|
700
|
-
kind: "schema",
|
|
701
|
-
type: "enum",
|
|
702
|
-
reference: enum_,
|
|
703
|
-
expects: /* @__PURE__ */ _joinExpects(options.map(_stringify), "|"),
|
|
704
|
-
async: false,
|
|
705
|
-
enum: enum__,
|
|
706
|
-
options,
|
|
707
|
-
message,
|
|
708
|
-
get "~standard"() {
|
|
709
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
710
|
-
},
|
|
711
|
-
"~run"(dataset, config2) {
|
|
712
|
-
if (this.options.includes(dataset.value)) dataset.typed = true;
|
|
713
|
-
else _addIssue(this, "type", dataset, config2);
|
|
714
|
-
return dataset;
|
|
715
|
-
}
|
|
716
|
-
};
|
|
717
|
-
}
|
|
718
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
719
696
|
function function_(message) {
|
|
720
697
|
return {
|
|
721
698
|
kind: "schema",
|
|
@@ -1923,21 +1900,20 @@ const InputCliOptionsSchema = omit(strictObject({
|
|
|
1923
1900
|
"profilerNames",
|
|
1924
1901
|
"watch"
|
|
1925
1902
|
]);
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
}(ESTarget || {});
|
|
1903
|
+
const ESTargetSchema = union([
|
|
1904
|
+
literal("es6"),
|
|
1905
|
+
literal("es2015"),
|
|
1906
|
+
literal("es2016"),
|
|
1907
|
+
literal("es2017"),
|
|
1908
|
+
literal("es2018"),
|
|
1909
|
+
literal("es2019"),
|
|
1910
|
+
literal("es2020"),
|
|
1911
|
+
literal("es2021"),
|
|
1912
|
+
literal("es2022"),
|
|
1913
|
+
literal("es2023"),
|
|
1914
|
+
literal("es2024"),
|
|
1915
|
+
literal("esnext")
|
|
1916
|
+
]);
|
|
1941
1917
|
const ModuleFormatSchema = union([
|
|
1942
1918
|
literal("es"),
|
|
1943
1919
|
literal("cjs"),
|
|
@@ -2017,7 +1993,7 @@ const OutputOptionsSchema = strictObject({
|
|
|
2017
1993
|
comments: pipe(optional(union([literal("none"), literal("preserve-legal")])), description("Control comments in the output")),
|
|
2018
1994
|
plugins: optional(custom(() => true)),
|
|
2019
1995
|
polyfillRequire: pipe(optional(boolean()), description("Disable require polyfill injection")),
|
|
2020
|
-
target: pipe(optional(
|
|
1996
|
+
target: pipe(optional(ESTargetSchema), description("The JavaScript target environment")),
|
|
2021
1997
|
hoistTransitiveImports: optional(custom((input) => {
|
|
2022
1998
|
if (input) return false;
|
|
2023
1999
|
return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown",
|
|
3
|
-
"version": "1.0.0-beta.8-commit.
|
|
3
|
+
"version": "1.0.0-beta.8-commit.8cce9fc",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"homepage": "https://rolldown.rs/",
|
|
@@ -100,7 +100,8 @@
|
|
|
100
100
|
"devDependencies": {
|
|
101
101
|
"@napi-rs/cli": "^3.0.0-alpha.77",
|
|
102
102
|
"@napi-rs/wasm-runtime": "^0.2.4",
|
|
103
|
-
"@oxc-node/
|
|
103
|
+
"@oxc-node/cli": "^0.0.25",
|
|
104
|
+
"@oxc-node/core": "^0.0.25",
|
|
104
105
|
"@types/fs-extra": "^11.0.4",
|
|
105
106
|
"@types/lodash-es": "^4.17.12",
|
|
106
107
|
"@valibot/to-json-schema": "1.0.0",
|
|
@@ -117,38 +118,37 @@
|
|
|
117
118
|
"rollup": "^4.18.0",
|
|
118
119
|
"signal-exit": "4.1.0",
|
|
119
120
|
"source-map": "^0.7.4",
|
|
120
|
-
"tsx": "^4.19.2",
|
|
121
121
|
"type-fest": "^4.20.0",
|
|
122
122
|
"typedoc": "^0.28.0",
|
|
123
123
|
"typescript": "^5.7.3",
|
|
124
124
|
"unbuild": "^3.0.0",
|
|
125
125
|
"valibot": "1.0.0",
|
|
126
126
|
"@rolldown/testing": "0.0.1",
|
|
127
|
-
"rolldown": "1.0.0-beta.8-commit.
|
|
127
|
+
"rolldown": "1.0.0-beta.8-commit.8cce9fc"
|
|
128
128
|
},
|
|
129
129
|
"optionalDependencies": {
|
|
130
|
-
"@rolldown/binding-darwin-arm64": "1.0.0-beta.8-commit.
|
|
131
|
-
"@rolldown/binding-darwin-x64": "1.0.0-beta.8-commit.
|
|
132
|
-
"@rolldown/binding-freebsd-x64": "1.0.0-beta.8-commit.
|
|
133
|
-
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.8-commit.
|
|
134
|
-
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.8-commit.
|
|
135
|
-
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.8-commit.
|
|
136
|
-
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.8-commit.
|
|
137
|
-
"@rolldown/binding-
|
|
138
|
-
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.8-commit.
|
|
139
|
-
"@rolldown/binding-win32-
|
|
140
|
-
"@rolldown/binding-win32-
|
|
141
|
-
"@rolldown/binding-
|
|
130
|
+
"@rolldown/binding-darwin-arm64": "1.0.0-beta.8-commit.8cce9fc",
|
|
131
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.8-commit.8cce9fc",
|
|
132
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.8-commit.8cce9fc",
|
|
133
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.8-commit.8cce9fc",
|
|
134
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.8-commit.8cce9fc",
|
|
135
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.8-commit.8cce9fc",
|
|
136
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.8-commit.8cce9fc",
|
|
137
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.8-commit.8cce9fc",
|
|
138
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.8-commit.8cce9fc",
|
|
139
|
+
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.8-commit.8cce9fc",
|
|
140
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.8-commit.8cce9fc",
|
|
141
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.8-commit.8cce9fc"
|
|
142
142
|
},
|
|
143
143
|
"scripts": {
|
|
144
144
|
"# Scrips for binding #": "_",
|
|
145
145
|
"artifacts": "napi artifacts --cwd ./src --package-json-path ../package.json -o=../artifacts --npm-dir ../npm",
|
|
146
|
-
"build-binding": "
|
|
146
|
+
"build-binding": "oxnode ./build-binding.mts",
|
|
147
147
|
"build-binding:release": "pnpm build-binding --release",
|
|
148
148
|
"build-binding:wasi": "pnpm build-binding --target wasm32-wasip1-threads",
|
|
149
149
|
"build-binding:wasi:release": "pnpm build-binding --profile release-wasi --target wasm32-wasip1-threads",
|
|
150
150
|
"# Scrips for node #": "_",
|
|
151
|
-
"build-node": "
|
|
151
|
+
"build-node": "oxnode ./build.ts",
|
|
152
152
|
"build-types-check": "tsc -p ./tsconfig.check.json",
|
|
153
153
|
"build-js-glue": "pnpm run --sequential '/^build-(types|node|types-check)$/'",
|
|
154
154
|
"build-native:debug": "pnpm run --sequential '/^build-(binding|js-glue)$/'",
|