rolldown 1.0.0-beta.31 → 1.0.0-beta.31-commit.832324a
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 +5 -5
- package/dist/cli.mjs +5 -5
- package/dist/config.cjs +3 -3
- package/dist/config.d.cts +2 -2
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +3 -3
- package/dist/experimental-index.cjs +2 -2
- package/dist/experimental-index.d.cts +2 -2
- package/dist/experimental-index.d.mts +2 -2
- package/dist/experimental-index.mjs +2 -2
- package/dist/experimental-runtime-types.d.ts +7 -4
- package/dist/filter-index.d.cts +2 -2
- package/dist/filter-index.d.mts +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/parallel-plugin-worker.cjs +2 -2
- package/dist/parallel-plugin-worker.mjs +2 -2
- package/dist/parallel-plugin.d.cts +2 -2
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.cjs +1 -1
- package/dist/parse-ast-index.d.cts +1 -1
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/shared/{binding-B2f_h9DF.d.mts → binding-BIqlUgrm.d.cts} +1 -0
- package/dist/shared/{binding-CCkTRaSB.d.cts → binding-COE5UL-B.d.mts} +1 -0
- package/dist/shared/{define-config-BzVT47Bj.d.cts → define-config-DFC0Nu7H.d.cts} +18 -4
- package/dist/shared/{define-config-BSYGonXk.d.mts → define-config-DfOVOsx6.d.mts} +18 -4
- package/dist/shared/{load-config-DL286H4s.mjs → load-config-BsvtI-HD.mjs} +1 -1
- package/dist/shared/{load-config-BpWL-vMP.cjs → load-config-C2ByPkRr.cjs} +1 -1
- package/dist/shared/{parse-ast-index-B-b57oWx.mjs → parse-ast-index-B5ThufKy.mjs} +96 -27
- package/dist/shared/{parse-ast-index-CKLoWOY8.cjs → parse-ast-index-DSyjeX7n.cjs} +96 -27
- package/dist/shared/{src-Cs-HV-Wp.mjs → src-CJyr8NNX.mjs} +17 -6
- package/dist/shared/{src-D5CeiA1y.cjs → src-aI0ysjSj.cjs} +17 -6
- package/package.json +25 -24
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_parse_ast_index = require('./parse-ast-index-
|
|
2
|
+
const require_parse_ast_index = require('./parse-ast-index-DSyjeX7n.cjs');
|
|
3
3
|
const require_misc = require('./misc-DksvspN4.cjs');
|
|
4
4
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
5
5
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
@@ -10,7 +10,7 @@ const node_os = require_chunk.__toESM(require("node:os"));
|
|
|
10
10
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
11
11
|
|
|
12
12
|
//#region package.json
|
|
13
|
-
var version = "1.0.0-beta.31";
|
|
13
|
+
var version = "1.0.0-beta.31-commit.832324a";
|
|
14
14
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
15
15
|
|
|
16
16
|
//#endregion
|
|
@@ -29,8 +29,16 @@ function isReadonlyArray(input) {
|
|
|
29
29
|
function makeBuiltinPluginCallable(plugin) {
|
|
30
30
|
let callablePlugin = new require_parse_ast_index.BindingCallableBuiltinPlugin(bindingifyBuiltInPlugin(plugin));
|
|
31
31
|
const wrappedPlugin = plugin;
|
|
32
|
-
for (const key in callablePlugin) wrappedPlugin[key] = function(...args$1) {
|
|
33
|
-
|
|
32
|
+
for (const key in callablePlugin) wrappedPlugin[key] = async function(...args$1) {
|
|
33
|
+
try {
|
|
34
|
+
return await callablePlugin[key](...args$1);
|
|
35
|
+
} catch (e) {
|
|
36
|
+
if (e instanceof Error && !e.stack?.includes("at ")) Error.captureStackTrace(e, wrappedPlugin[key]);
|
|
37
|
+
return require_parse_ast_index.error(require_parse_ast_index.logPluginError(e, plugin.name, {
|
|
38
|
+
hook: key,
|
|
39
|
+
id: key === "transform" ? args$1[2] : void 0
|
|
40
|
+
}));
|
|
41
|
+
}
|
|
34
42
|
};
|
|
35
43
|
return wrappedPlugin;
|
|
36
44
|
}
|
|
@@ -2037,7 +2045,8 @@ const InputCliOverrideSchema = strictObject({
|
|
|
2037
2045
|
literal("react-jsx"),
|
|
2038
2046
|
literal("preserve")
|
|
2039
2047
|
])), description("Jsx options preset")),
|
|
2040
|
-
preserveEntrySignatures: pipe(optional(union([literal(false)])), description("Avoid facade chunks for entry points"))
|
|
2048
|
+
preserveEntrySignatures: pipe(optional(union([literal(false)])), description("Avoid facade chunks for entry points")),
|
|
2049
|
+
context: pipe(optional(string()), description("The entity top-level `this` represents."))
|
|
2041
2050
|
});
|
|
2042
2051
|
const InputCliOptionsSchema = omit(strictObject({
|
|
2043
2052
|
...InputOptionsSchema.entries,
|
|
@@ -2066,6 +2075,7 @@ const AssetFileNamesSchema = union([string(), pipe(function_(), args(tuple([cust
|
|
|
2066
2075
|
const SanitizeFileNameSchema = union([boolean(), pipe(function_(), args(tuple([string()])), returns(string()))]);
|
|
2067
2076
|
const GlobalsFunctionSchema = pipe(function_(), args(tuple([string()])), returns(string()));
|
|
2068
2077
|
const AdvancedChunksSchema = strictObject({
|
|
2078
|
+
includeDependenciesRecursively: optional(boolean()),
|
|
2069
2079
|
minSize: optional(number()),
|
|
2070
2080
|
maxSize: optional(number()),
|
|
2071
2081
|
minModuleSize: optional(number()),
|
|
@@ -3829,7 +3839,8 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
|
|
|
3829
3839
|
invalidateJsSideCache: pluginContextData.clear.bind(pluginContextData),
|
|
3830
3840
|
markModuleLoaded: pluginContextData.markModuleLoaded.bind(pluginContextData),
|
|
3831
3841
|
preserveEntrySignatures: bindingifyPreserveEntrySignatures(inputOptions.preserveEntrySignatures),
|
|
3832
|
-
optimization: inputOptions.optimization
|
|
3842
|
+
optimization: inputOptions.optimization,
|
|
3843
|
+
context: inputOptions.context
|
|
3833
3844
|
};
|
|
3834
3845
|
}
|
|
3835
3846
|
function bindingifyHmr(hmr) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown",
|
|
3
|
-
"version": "1.0.0-beta.31",
|
|
3
|
+
"version": "1.0.0-beta.31-commit.832324a",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://rolldown.rs/",
|
|
@@ -92,13 +92,13 @@
|
|
|
92
92
|
"dtsHeader": "type MaybePromise<T> = T | Promise<T>\ntype Nullable<T> = T | null | undefined\ntype VoidNullable<T = void> = T | null | undefined | void\nexport type BindingStringOrRegex = string | RegExp\n\n"
|
|
93
93
|
},
|
|
94
94
|
"dependencies": {
|
|
95
|
-
"@oxc-project/runtime": "=0.
|
|
96
|
-
"@oxc-project/types": "=0.
|
|
95
|
+
"@oxc-project/runtime": "=0.81.0",
|
|
96
|
+
"@oxc-project/types": "=0.81.0",
|
|
97
97
|
"ansis": "^4.0.0",
|
|
98
|
-
"@rolldown/pluginutils": "1.0.0-beta.31"
|
|
98
|
+
"@rolldown/pluginutils": "1.0.0-beta.31-commit.832324a"
|
|
99
99
|
},
|
|
100
100
|
"devDependencies": {
|
|
101
|
-
"@napi-rs/cli": "^3.
|
|
101
|
+
"@napi-rs/cli": "^3.1.2",
|
|
102
102
|
"@napi-rs/wasm-runtime": "^1.0.0",
|
|
103
103
|
"@oxc-node/cli": "^0.0.30",
|
|
104
104
|
"@rollup/plugin-json": "^6.1.0",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"emnapi": "^1.2.0",
|
|
109
109
|
"execa": "^9.2.0",
|
|
110
110
|
"glob": "^11.0.0",
|
|
111
|
-
"oxc-parser": "=0.
|
|
111
|
+
"oxc-parser": "=0.81.0",
|
|
112
112
|
"pathe": "^2.0.3",
|
|
113
113
|
"remeda": "^2.10.0",
|
|
114
114
|
"rolldown-plugin-dts": "^0.15.0",
|
|
@@ -119,31 +119,31 @@
|
|
|
119
119
|
"typedoc": "^0.28.0",
|
|
120
120
|
"typescript": "^5.7.3",
|
|
121
121
|
"valibot": "1.1.0",
|
|
122
|
-
"rolldown": "
|
|
123
|
-
"
|
|
122
|
+
"@rolldown/testing": "0.0.1",
|
|
123
|
+
"rolldown": "1.0.0-beta.31-commit.832324a"
|
|
124
124
|
},
|
|
125
125
|
"optionalDependencies": {
|
|
126
|
-
"@rolldown/binding-darwin-x64": "1.0.0-beta.31",
|
|
127
|
-
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.31",
|
|
128
|
-
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.31",
|
|
129
|
-
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.31",
|
|
130
|
-
"@rolldown/binding-freebsd-x64": "1.0.0-beta.31",
|
|
131
|
-
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.31",
|
|
132
|
-
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.31",
|
|
133
|
-
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.31",
|
|
134
|
-
"@rolldown/binding-darwin-arm64": "1.0.0-beta.31",
|
|
135
|
-
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.31",
|
|
136
|
-
"@rolldown/binding-
|
|
137
|
-
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.31",
|
|
138
|
-
"@rolldown/binding-android-arm64": "1.0.0-beta.31",
|
|
139
|
-
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.31"
|
|
126
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.31-commit.832324a",
|
|
127
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.31-commit.832324a",
|
|
128
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.31-commit.832324a",
|
|
129
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.31-commit.832324a",
|
|
130
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.31-commit.832324a",
|
|
131
|
+
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.31-commit.832324a",
|
|
132
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.31-commit.832324a",
|
|
133
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.31-commit.832324a",
|
|
134
|
+
"@rolldown/binding-darwin-arm64": "1.0.0-beta.31-commit.832324a",
|
|
135
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.31-commit.832324a",
|
|
136
|
+
"@rolldown/binding-openharmony-arm64": "1.0.0-beta.31-commit.832324a",
|
|
137
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.31-commit.832324a",
|
|
138
|
+
"@rolldown/binding-android-arm64": "1.0.0-beta.31-commit.832324a",
|
|
139
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.31-commit.832324a"
|
|
140
140
|
},
|
|
141
141
|
"scripts": {
|
|
142
142
|
"# Scrips for binding #": "_",
|
|
143
143
|
"artifacts": "napi artifacts --cwd ./src --package-json-path ../package.json -o=../artifacts --npm-dir ../npm",
|
|
144
144
|
"build-binding": "oxnode ./build-binding.ts",
|
|
145
145
|
"build-binding:release": "pnpm build-binding --release",
|
|
146
|
-
"build-binding:
|
|
146
|
+
"build-binding:profile": "pnpm build-binding --profile profile",
|
|
147
147
|
"build-binding:wasi": "pnpm build-binding --target wasm32-wasip1-threads",
|
|
148
148
|
"build-binding:wasi:release": "pnpm build-binding --profile release-wasi --target wasm32-wasip1-threads",
|
|
149
149
|
"# Scrips for node #": "_",
|
|
@@ -152,7 +152,8 @@
|
|
|
152
152
|
"build-js-glue": "pnpm run --sequential '/^build-(node|types-check)$/'",
|
|
153
153
|
"build-native:debug": "pnpm run --sequential '/^build-(binding|js-glue)$/'",
|
|
154
154
|
"build-native:release": "pnpm run --sequential '/^build-(binding:release|js-glue)$/'",
|
|
155
|
-
"build-native:
|
|
155
|
+
"build-native:profile": "pnpm run build-binding:profile && pnpm run build-js-glue",
|
|
156
|
+
"build-native:memory-profile": "pnpm run build-binding:profile --features default_global_allocator && pnpm run build-js-glue",
|
|
156
157
|
"build-browser:debug": "BROWSER_PKG=1 pnpm run --sequential '/^build-(binding|binding:wasi|node)$/'",
|
|
157
158
|
"build-browser:release": "BROWSER_PKG=1 pnpm run --sequential '/^build-(binding|binding:wasi:release|node)$/'",
|
|
158
159
|
"# Scrips for docs #": "_",
|