@rolldown/browser 1.0.0-beta.9-commit.273d50e → 1.0.0-beta.9-commit.b174110
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-gIb0d07e.mjs → load-config-CV_7wWhH.mjs} +1 -1
- package/dist/shared/{load-config-xy-ScCWb.cjs → load-config-DegJq4hI.cjs} +1 -1
- package/dist/shared/{parse-ast-index-Bx70S80g.mjs → parse-ast-index-vu376yZ1.mjs} +13 -3
- package/dist/shared/{src-j8qvGwKp.cjs → src-BDUsoOnL.cjs} +8 -8
- package/dist/shared/{src-CA0na5_d.mjs → src-CJu4NZI4.mjs} +198 -980
- package/dist/{src-D3kPdsBX.js → src-CBsKC-xF.js} +8 -8
- package/package.json +1 -1
- package/dist/shared/dist-DRt7s0oH.mjs +0 -147
|
@@ -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.b174110";
|
|
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.b174110",
|
|
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 };
|