@rolldown/browser 1.0.0-beta.10-commit.885ee53 → 1.0.0-beta.10-commit.174c548

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.
Files changed (37) hide show
  1. package/dist/cli.cjs +6 -8
  2. package/dist/cli.mjs +1077 -1036
  3. package/dist/config.cjs +3 -3
  4. package/dist/config.d.mts +2 -2
  5. package/dist/config.mjs +5 -4
  6. package/dist/experimental-index.browser.mjs +1 -1
  7. package/dist/experimental-index.cjs +2 -2
  8. package/dist/experimental-index.d.mts +2 -2
  9. package/dist/experimental-index.mjs +14 -3
  10. package/dist/filter-index.d.mts +2 -2
  11. package/dist/filter-index.mjs +2 -1
  12. package/dist/index.browser.mjs +1 -1
  13. package/dist/index.cjs +2 -2
  14. package/dist/index.d.mts +2 -2
  15. package/dist/index.mjs +4 -3
  16. package/dist/parallel-plugin-worker.cjs +2 -2
  17. package/dist/parallel-plugin-worker.mjs +33 -27
  18. package/dist/parallel-plugin.d.mts +2 -2
  19. package/dist/parse-ast-index.cjs +1 -1
  20. package/dist/parse-ast-index.d.mts +1 -1
  21. package/dist/parse-ast-index.mjs +2 -1
  22. package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
  23. package/dist/shared/chunk-DSsiIF1Z.mjs +30 -0
  24. package/dist/shared/{define-config-cqCLLLZ-.d.mts → define-config-BIXBk1MV.d.mts} +1 -1
  25. package/dist/shared/dist-DeDsdiza.mjs +153 -0
  26. package/dist/shared/{load-config-0bnuUeT5.cjs → load-config-Bh4s7mv7.cjs} +1 -1
  27. package/dist/shared/{load-config-F7nMcxMb.mjs → load-config-NxVyTTYe.mjs} +19 -14
  28. package/dist/shared/{parse-ast-index-C31FpvkE.mjs → parse-ast-index-B3Tue26H.mjs} +28 -10
  29. package/dist/shared/{parse-ast-index-BuelS_NF.cjs → parse-ast-index-DL8_b_QU.cjs} +1 -1
  30. package/dist/shared/prompt-jPdbaKAj.mjs +854 -0
  31. package/dist/shared/{src-B3FAi7gC.cjs → src-C1WG6B4S.cjs} +86 -16
  32. package/dist/shared/{src-6t_bV_L5.mjs → src-zY8hlbF2.mjs} +1422 -1132
  33. package/dist/{src-1eaUHc8G.js → src-DLpA6Cgv.js} +6 -6
  34. package/package.json +2 -2
  35. package/dist/shared/dist-BoWaIc-K.mjs +0 -147
  36. package/dist/shared/prompt-C3zHEaSG.mjs +0 -852
  37. /package/dist/shared/{binding-Dod8fhx9.d.mts → binding-CHPrEDXp.d.mts} +0 -0
@@ -28,7 +28,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
 
29
29
  //#endregion
30
30
  //#region package.json
31
- var version = "1.0.0-beta.10-commit.885ee53";
31
+ var version = "1.0.0-beta.10-commit.174c548";
32
32
 
33
33
  //#endregion
34
34
  //#region src/builtin-plugin/utils.ts
@@ -2322,7 +2322,7 @@ function exclude(expr) {
2322
2322
  }
2323
2323
 
2324
2324
  //#endregion
2325
- //#region ../../node_modules/.pnpm/remeda@2.21.6/node_modules/remeda/dist/chunk-D6FCK2GA.js
2325
+ //#region ../../node_modules/.pnpm/remeda@2.22.5/node_modules/remeda/dist/chunk-D6FCK2GA.js
2326
2326
  function u$1(o$1, n$1, a$2) {
2327
2327
  let t$2 = (r$1) => o$1(r$1, ...n$1);
2328
2328
  return a$2 === void 0 ? t$2 : Object.assign(t$2, {
@@ -2332,7 +2332,7 @@ function u$1(o$1, n$1, a$2) {
2332
2332
  }
2333
2333
 
2334
2334
  //#endregion
2335
- //#region ../../node_modules/.pnpm/remeda@2.21.6/node_modules/remeda/dist/chunk-WIMGWYZL.js
2335
+ //#region ../../node_modules/.pnpm/remeda@2.22.5/node_modules/remeda/dist/chunk-WIMGWYZL.js
2336
2336
  function u(r$1, n$1, o$1) {
2337
2337
  let a$2 = r$1.length - n$1.length;
2338
2338
  if (a$2 === 0) return r$1(...n$1);
@@ -2341,7 +2341,7 @@ function u(r$1, n$1, o$1) {
2341
2341
  }
2342
2342
 
2343
2343
  //#endregion
2344
- //#region ../../node_modules/.pnpm/remeda@2.21.6/node_modules/remeda/dist/chunk-3IFJP4R5.js
2344
+ //#region ../../node_modules/.pnpm/remeda@2.22.5/node_modules/remeda/dist/chunk-3IFJP4R5.js
2345
2345
  function d(...r$1) {
2346
2346
  return u(i, r$1);
2347
2347
  }
@@ -2352,7 +2352,7 @@ var i = (r$1, t$2) => {
2352
2352
  };
2353
2353
 
2354
2354
  //#endregion
2355
- //#region ../../node_modules/.pnpm/remeda@2.21.6/node_modules/remeda/dist/chunk-5NQBDF4H.js
2355
+ //#region ../../node_modules/.pnpm/remeda@2.22.5/node_modules/remeda/dist/chunk-5NQBDF4H.js
2356
2356
  function t(...n$1) {
2357
2357
  return u(Object.keys, n$1);
2358
2358
  }
@@ -2514,7 +2514,7 @@ function bindingPluginOrder(order) {
2514
2514
  }
2515
2515
 
2516
2516
  //#endregion
2517
- //#region ../../node_modules/.pnpm/oxc-parser@0.72.1/node_modules/oxc-parser/wrap.mjs
2517
+ //#region ../../node_modules/.pnpm/oxc-parser@0.72.2/node_modules/oxc-parser/wrap.mjs
2518
2518
  function wrap$1(result) {
2519
2519
  let program, module$1, comments, errors;
2520
2520
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rolldown/browser",
3
- "version": "1.0.0-beta.10-commit.885ee53",
3
+ "version": "1.0.0-beta.10-commit.174c548",
4
4
  "description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
5
5
  "homepage": "https://rolldown.rs/",
6
6
  "type": "module",
@@ -55,7 +55,7 @@
55
55
  "access": "public"
56
56
  },
57
57
  "dependencies": {
58
- "@napi-rs/wasm-runtime": "^0.2.8"
58
+ "@napi-rs/wasm-runtime": "^0.2.10"
59
59
  },
60
60
  "scripts": {
61
61
  "build": "pnpm run build:debug",
@@ -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, arraify, code, exclude, id, include, isNullish, isPromiseLike, moduleType, noop, not, or, queries, query, unimplemented, unreachable, unsupported };