@rolldown/browser 1.0.0-beta.9-commit.273d50e → 1.0.0-beta.9-commit.ca4e9dd
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 +10 -10
- package/dist/cli.mjs +55 -44
- package/dist/config.cjs +2 -2
- package/dist/config.d.cts +1 -1
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +4 -4
- package/dist/experimental-index.browser.mjs +1 -1
- package/dist/experimental-index.cjs +1 -1
- package/dist/experimental-index.d.cts +1 -1
- package/dist/experimental-index.d.mts +1 -1
- package/dist/experimental-index.mjs +4 -3
- package/dist/filter-index.d.cts +1 -1
- package/dist/filter-index.d.mts +1 -1
- package/dist/filter-index.mjs +2 -1
- package/dist/index.browser.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +3 -3
- package/dist/parallel-plugin-worker.cjs +1 -1
- package/dist/parallel-plugin-worker.mjs +3 -3
- package/dist/parallel-plugin.d.cts +1 -1
- package/dist/parallel-plugin.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/shared/{define-config.d-gqmzo185.d.cts → define-config.d-D4lKXE9V.d.cts} +19 -19
- package/dist/shared/{define-config.d-GTTTro2-.d.mts → define-config.d-Dm9iNdt9.d.mts} +19 -19
- package/dist/shared/dist-CAn6dxW6.mjs +153 -0
- package/dist/shared/{load-config-xy-ScCWb.cjs → load-config-42uI5RSv.cjs} +1 -1
- package/dist/shared/{load-config-gIb0d07e.mjs → load-config-vRugYmJ3.mjs} +1 -1
- package/dist/shared/{parse-ast-index-Bx70S80g.mjs → parse-ast-index-vu376yZ1.mjs} +13 -3
- package/dist/shared/{src-CA0na5_d.mjs → src-Cu4_wKhx.mjs} +198 -980
- package/dist/shared/{src-j8qvGwKp.cjs → src-CzdOBfDC.cjs} +8 -8
- package/dist/{src-D3kPdsBX.js → src-DQ33eKZS.js} +8 -8
- package/package.json +1 -1
- package/dist/shared/dist-DRt7s0oH.mjs +0 -147
|
@@ -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.9-commit.
|
|
12
|
+
var version = "1.0.0-beta.9-commit.ca4e9dd";
|
|
13
13
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
14
14
|
|
|
15
15
|
//#endregion
|
|
@@ -2161,7 +2161,7 @@ var NormalizedInputOptionsImpl = class {
|
|
|
2161
2161
|
|
|
2162
2162
|
//#endregion
|
|
2163
2163
|
//#region src/types/sourcemap.ts
|
|
2164
|
-
function bindingifySourcemap
|
|
2164
|
+
function bindingifySourcemap(map) {
|
|
2165
2165
|
if (map == null) return;
|
|
2166
2166
|
return { inner: typeof map === "string" ? map : {
|
|
2167
2167
|
file: map.file ?? void 0,
|
|
@@ -2705,7 +2705,7 @@ function bindingifyTransform(args$1) {
|
|
|
2705
2705
|
});
|
|
2706
2706
|
return {
|
|
2707
2707
|
code: ret.code,
|
|
2708
|
-
map: bindingifySourcemap
|
|
2708
|
+
map: bindingifySourcemap(normalizeTransformHookSourcemap(id$1, code$1, ret.map)),
|
|
2709
2709
|
sideEffects: bindingifySideEffects(moduleOption.moduleSideEffects),
|
|
2710
2710
|
moduleType: ret.moduleType
|
|
2711
2711
|
};
|
|
@@ -2731,7 +2731,7 @@ function bindingifyLoad(args$1) {
|
|
|
2731
2731
|
let map = preProcessSourceMap(ret, id$1);
|
|
2732
2732
|
return {
|
|
2733
2733
|
code: ret.code,
|
|
2734
|
-
map: bindingifySourcemap
|
|
2734
|
+
map: bindingifySourcemap(map),
|
|
2735
2735
|
moduleType: ret.moduleType,
|
|
2736
2736
|
sideEffects: bindingifySideEffects(moduleOption.moduleSideEffects)
|
|
2737
2737
|
};
|
|
@@ -2837,7 +2837,7 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
2837
2837
|
format: bindingifyFormat(format),
|
|
2838
2838
|
exports: exports$1,
|
|
2839
2839
|
hashCharacters,
|
|
2840
|
-
sourcemap: bindingifySourcemap(sourcemap),
|
|
2840
|
+
sourcemap: bindingifySourcemap$1(sourcemap),
|
|
2841
2841
|
sourcemapDebugIds,
|
|
2842
2842
|
sourcemapIgnoreList: bindingifySourcemapIgnoreList(sourcemapIgnoreList),
|
|
2843
2843
|
sourcemapPathTransform,
|
|
@@ -2887,7 +2887,7 @@ function bindingifyFormat(format) {
|
|
|
2887
2887
|
default: require_dist.unimplemented(`output.format: ${format}`);
|
|
2888
2888
|
}
|
|
2889
2889
|
}
|
|
2890
|
-
function bindingifySourcemap(sourcemap) {
|
|
2890
|
+
function bindingifySourcemap$1(sourcemap) {
|
|
2891
2891
|
switch (sourcemap) {
|
|
2892
2892
|
case true: return "file";
|
|
2893
2893
|
case "inline": return "inline";
|
|
@@ -3153,7 +3153,7 @@ function collectChangedBundle(changed, bundle) {
|
|
|
3153
3153
|
facadeModuleId: item.facadeModuleId || void 0,
|
|
3154
3154
|
isDynamicEntry: item.isDynamicEntry,
|
|
3155
3155
|
moduleIds: item.moduleIds,
|
|
3156
|
-
map: bindingifySourcemap
|
|
3156
|
+
map: bindingifySourcemap(item.map),
|
|
3157
3157
|
sourcemapFilename: item.sourcemapFileName || void 0,
|
|
3158
3158
|
preliminaryFilename: item.preliminaryFileName
|
|
3159
3159
|
});
|
|
@@ -3191,7 +3191,7 @@ function bindingifyRenderChunk(args$1) {
|
|
|
3191
3191
|
if (!ret.map) return { code: ret.code };
|
|
3192
3192
|
return {
|
|
3193
3193
|
code: ret.code,
|
|
3194
|
-
map: bindingifySourcemap
|
|
3194
|
+
map: bindingifySourcemap(ret.map)
|
|
3195
3195
|
};
|
|
3196
3196
|
},
|
|
3197
3197
|
meta: bindingifyPluginHookMeta(meta),
|
|
@@ -4,7 +4,7 @@ import { fileURLToPath } from "node:url";
|
|
|
4
4
|
import colors from "ansis";
|
|
5
5
|
|
|
6
6
|
//#region package.json
|
|
7
|
-
var version = "1.0.0-beta.9-commit.
|
|
7
|
+
var version = "1.0.0-beta.9-commit.ca4e9dd";
|
|
8
8
|
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/builtin-plugin/utils.ts
|
|
@@ -1951,7 +1951,7 @@ var NormalizedInputOptionsImpl = class {
|
|
|
1951
1951
|
|
|
1952
1952
|
//#endregion
|
|
1953
1953
|
//#region src/types/sourcemap.ts
|
|
1954
|
-
function bindingifySourcemap
|
|
1954
|
+
function bindingifySourcemap(map) {
|
|
1955
1955
|
if (map == null) return;
|
|
1956
1956
|
return { inner: typeof map === "string" ? map : {
|
|
1957
1957
|
file: map.file ?? void 0,
|
|
@@ -2650,7 +2650,7 @@ function bindingifyTransform(args$1) {
|
|
|
2650
2650
|
});
|
|
2651
2651
|
return {
|
|
2652
2652
|
code: ret.code,
|
|
2653
|
-
map: bindingifySourcemap
|
|
2653
|
+
map: bindingifySourcemap(normalizeTransformHookSourcemap(id$1, code$1, ret.map)),
|
|
2654
2654
|
sideEffects: bindingifySideEffects(moduleOption.moduleSideEffects),
|
|
2655
2655
|
moduleType: ret.moduleType
|
|
2656
2656
|
};
|
|
@@ -2676,7 +2676,7 @@ function bindingifyLoad(args$1) {
|
|
|
2676
2676
|
let map = preProcessSourceMap(ret, id$1);
|
|
2677
2677
|
return {
|
|
2678
2678
|
code: ret.code,
|
|
2679
|
-
map: bindingifySourcemap
|
|
2679
|
+
map: bindingifySourcemap(map),
|
|
2680
2680
|
moduleType: ret.moduleType,
|
|
2681
2681
|
sideEffects: bindingifySideEffects(moduleOption.moduleSideEffects)
|
|
2682
2682
|
};
|
|
@@ -2782,7 +2782,7 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
2782
2782
|
format: bindingifyFormat(format),
|
|
2783
2783
|
exports,
|
|
2784
2784
|
hashCharacters,
|
|
2785
|
-
sourcemap: bindingifySourcemap(sourcemap),
|
|
2785
|
+
sourcemap: bindingifySourcemap$1(sourcemap),
|
|
2786
2786
|
sourcemapDebugIds,
|
|
2787
2787
|
sourcemapIgnoreList: bindingifySourcemapIgnoreList(sourcemapIgnoreList),
|
|
2788
2788
|
sourcemapPathTransform,
|
|
@@ -2832,7 +2832,7 @@ function bindingifyFormat(format) {
|
|
|
2832
2832
|
default: unimplemented(`output.format: ${format}`);
|
|
2833
2833
|
}
|
|
2834
2834
|
}
|
|
2835
|
-
function bindingifySourcemap(sourcemap) {
|
|
2835
|
+
function bindingifySourcemap$1(sourcemap) {
|
|
2836
2836
|
switch (sourcemap) {
|
|
2837
2837
|
case true: return "file";
|
|
2838
2838
|
case "inline": return "inline";
|
|
@@ -3098,7 +3098,7 @@ function collectChangedBundle(changed, bundle) {
|
|
|
3098
3098
|
facadeModuleId: item.facadeModuleId || void 0,
|
|
3099
3099
|
isDynamicEntry: item.isDynamicEntry,
|
|
3100
3100
|
moduleIds: item.moduleIds,
|
|
3101
|
-
map: bindingifySourcemap
|
|
3101
|
+
map: bindingifySourcemap(item.map),
|
|
3102
3102
|
sourcemapFilename: item.sourcemapFileName || void 0,
|
|
3103
3103
|
preliminaryFilename: item.preliminaryFileName
|
|
3104
3104
|
});
|
|
@@ -3136,7 +3136,7 @@ function bindingifyRenderChunk(args$1) {
|
|
|
3136
3136
|
if (!ret.map) return { code: ret.code };
|
|
3137
3137
|
return {
|
|
3138
3138
|
code: ret.code,
|
|
3139
|
-
map: bindingifySourcemap
|
|
3139
|
+
map: bindingifySourcemap(ret.map)
|
|
3140
3140
|
};
|
|
3141
3141
|
},
|
|
3142
3142
|
meta: bindingifyPluginHookMeta(meta),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rolldown/browser",
|
|
3
|
-
"version": "1.0.0-beta.9-commit.
|
|
3
|
+
"version": "1.0.0-beta.9-commit.ca4e9dd",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"homepage": "https://rolldown.rs/",
|
|
6
6
|
"type": "module",
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
//#region src/utils/misc.ts
|
|
2
|
-
function arraify(value) {
|
|
3
|
-
return Array.isArray(value) ? value : [value];
|
|
4
|
-
}
|
|
5
|
-
function isNullish(value) {
|
|
6
|
-
return value === null || value === void 0;
|
|
7
|
-
}
|
|
8
|
-
function isPromiseLike(value) {
|
|
9
|
-
return value && (typeof value === "object" || typeof value === "function") && typeof value.then === "function";
|
|
10
|
-
}
|
|
11
|
-
function unimplemented(info) {
|
|
12
|
-
if (info) throw new Error(`unimplemented: ${info}`);
|
|
13
|
-
throw new Error("unimplemented");
|
|
14
|
-
}
|
|
15
|
-
function unreachable(info) {
|
|
16
|
-
if (info) throw new Error(`unreachable: ${info}`);
|
|
17
|
-
throw new Error("unreachable");
|
|
18
|
-
}
|
|
19
|
-
function unsupported(info) {
|
|
20
|
-
throw new Error(`UNSUPPORTED: ${info}`);
|
|
21
|
-
}
|
|
22
|
-
function noop(..._args) {}
|
|
23
|
-
|
|
24
|
-
//#endregion
|
|
25
|
-
//#region ../pluginutils/dist/index.js
|
|
26
|
-
var And = class {
|
|
27
|
-
kind;
|
|
28
|
-
args;
|
|
29
|
-
constructor(...args) {
|
|
30
|
-
if (args.length === 0) throw new Error("`And` expects at least one operand");
|
|
31
|
-
this.args = args;
|
|
32
|
-
this.kind = "and";
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
var Or = class {
|
|
36
|
-
kind;
|
|
37
|
-
args;
|
|
38
|
-
constructor(...args) {
|
|
39
|
-
if (args.length === 0) throw new Error("`Or` expects at least one operand");
|
|
40
|
-
this.args = args;
|
|
41
|
-
this.kind = "or";
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
var Not = class {
|
|
45
|
-
kind;
|
|
46
|
-
expr;
|
|
47
|
-
constructor(expr) {
|
|
48
|
-
this.expr = expr;
|
|
49
|
-
this.kind = "not";
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
var Id = class {
|
|
53
|
-
kind;
|
|
54
|
-
pattern;
|
|
55
|
-
params;
|
|
56
|
-
constructor(pattern, params) {
|
|
57
|
-
this.pattern = pattern;
|
|
58
|
-
this.kind = "id";
|
|
59
|
-
this.params = params ?? { cleanUrl: false };
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
var ModuleType = class {
|
|
63
|
-
kind;
|
|
64
|
-
pattern;
|
|
65
|
-
constructor(pattern) {
|
|
66
|
-
this.pattern = pattern;
|
|
67
|
-
this.kind = "moduleType";
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
var Code = class {
|
|
71
|
-
kind;
|
|
72
|
-
pattern;
|
|
73
|
-
constructor(expr) {
|
|
74
|
-
this.pattern = expr;
|
|
75
|
-
this.kind = "code";
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
var Query = class {
|
|
79
|
-
kind;
|
|
80
|
-
key;
|
|
81
|
-
pattern;
|
|
82
|
-
constructor(key, pattern) {
|
|
83
|
-
this.pattern = pattern;
|
|
84
|
-
this.key = key;
|
|
85
|
-
this.kind = "query";
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
var Include = class {
|
|
89
|
-
kind;
|
|
90
|
-
expr;
|
|
91
|
-
constructor(expr) {
|
|
92
|
-
this.expr = expr;
|
|
93
|
-
this.kind = "include";
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
var Exclude = class {
|
|
97
|
-
kind;
|
|
98
|
-
expr;
|
|
99
|
-
constructor(expr) {
|
|
100
|
-
this.expr = expr;
|
|
101
|
-
this.kind = "exclude";
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
function and(...args) {
|
|
105
|
-
return new And(...args);
|
|
106
|
-
}
|
|
107
|
-
function or(...args) {
|
|
108
|
-
return new Or(...args);
|
|
109
|
-
}
|
|
110
|
-
function not(expr) {
|
|
111
|
-
return new Not(expr);
|
|
112
|
-
}
|
|
113
|
-
function id(pattern, params) {
|
|
114
|
-
return new Id(pattern, params);
|
|
115
|
-
}
|
|
116
|
-
function moduleType(pattern) {
|
|
117
|
-
return new ModuleType(pattern);
|
|
118
|
-
}
|
|
119
|
-
function code(pattern) {
|
|
120
|
-
return new Code(pattern);
|
|
121
|
-
}
|
|
122
|
-
function query(key, pattern) {
|
|
123
|
-
return new Query(key, pattern);
|
|
124
|
-
}
|
|
125
|
-
function include(expr) {
|
|
126
|
-
return new Include(expr);
|
|
127
|
-
}
|
|
128
|
-
function exclude(expr) {
|
|
129
|
-
return new Exclude(expr);
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* convert a queryObject to FilterExpression like
|
|
133
|
-
* ```js
|
|
134
|
-
* and(query(k1, v1), query(k2, v2))
|
|
135
|
-
* ```
|
|
136
|
-
* @param queryFilterObject The query filter object needs to be matched.
|
|
137
|
-
* @returns a `And` FilterExpression
|
|
138
|
-
*/
|
|
139
|
-
function queries(queryFilter) {
|
|
140
|
-
let arr = Object.entries(queryFilter).map(([key, value]) => {
|
|
141
|
-
return new Query(key, value);
|
|
142
|
-
});
|
|
143
|
-
return and(...arr);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
//#endregion
|
|
147
|
-
export { and as and$1, arraify, code as code$1, exclude as exclude$1, id as id$1, include as include$1, isNullish, isPromiseLike, moduleType as moduleType$1, noop, not as not$1, or as or$1, queries as queries$1, query as query$1, unimplemented, unreachable, unsupported };
|