rolldown 1.0.0-beta.8-commit.852c603 → 1.0.0-beta.8-commit.baf6ca1

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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  const require_chunk = require('./chunk-qZFfknuJ.cjs');
3
3
  const require_parse_ast_index = require('./parse-ast-index-Bbz37LOL.cjs');
4
- const require_filter_expression_index = require('./filter-expression-index-CRtoeipP.cjs');
4
+ const require_filter_index = require('./filter-index-DblXSw9s.cjs');
5
5
  const node_path = require_chunk.__toESM(require("node:path"));
6
6
  const __valibot_to_json_schema = require_chunk.__toESM(require("@valibot/to-json-schema"));
7
7
  const ansis = require_chunk.__toESM(require("ansis"));
@@ -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.8-commit.852c603";
13
+ var version = "1.0.0-beta.8-commit.baf6ca1";
14
14
  var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
15
15
 
16
16
  //#endregion
@@ -97,30 +97,6 @@ function isolatedDeclarationPlugin(config) {
97
97
  return new BuiltinPlugin("builtin:isolated-declaration", config);
98
98
  }
99
99
 
100
- //#endregion
101
- //#region src/utils/misc.ts
102
- function arraify(value) {
103
- return Array.isArray(value) ? value : [value];
104
- }
105
- function isNullish(value) {
106
- return value === null || value === void 0;
107
- }
108
- function isPromiseLike(value) {
109
- return value && (typeof value === "object" || typeof value === "function") && typeof value.then === "function";
110
- }
111
- function unimplemented(info) {
112
- if (info) throw new Error(`unimplemented: ${info}`);
113
- throw new Error("unimplemented");
114
- }
115
- function unreachable(info) {
116
- if (info) throw new Error(`unreachable: ${info}`);
117
- throw new Error("unreachable");
118
- }
119
- function unsupported(info) {
120
- throw new Error(`UNSUPPORTED: ${info}`);
121
- }
122
- function noop(..._args) {}
123
-
124
100
  //#endregion
125
101
  //#region src/log/logging.ts
126
102
  const LOG_LEVEL_SILENT = "silent";
@@ -139,7 +115,7 @@ const logLevelPriority = {
139
115
  //#region src/log/log-handler.ts
140
116
  const normalizeLog = (log) => typeof log === "string" ? { message: log } : typeof log === "function" ? normalizeLog(log()) : log;
141
117
  function getLogHandler(level, code$1, logger, pluginName, logLevel) {
142
- if (logLevelPriority[level] < logLevelPriority[logLevel]) return noop;
118
+ if (logLevelPriority[level] < logLevelPriority[logLevel]) return require_filter_index.noop;
143
119
  return (log, pos) => {
144
120
  if (pos != null) logger(LOG_LEVEL_WARN, require_parse_ast_index.logInvalidLogPosition(pluginName));
145
121
  log = normalizeLog(log);
@@ -242,7 +218,7 @@ function normalizeHook(hook) {
242
218
  meta: { order }
243
219
  };
244
220
  }
245
- unreachable("Invalid hook type");
221
+ require_filter_index.unreachable("Invalid hook type");
246
222
  }
247
223
 
248
224
  //#endregion
@@ -924,7 +900,7 @@ function joinNewLine(s1, s2) {
924
900
  function transformModuleInfo(info, option) {
925
901
  return {
926
902
  get ast() {
927
- return unsupported("ModuleInfo#ast");
903
+ return require_filter_index.unsupported("ModuleInfo#ast");
928
904
  },
929
905
  get code() {
930
906
  return info.code;
@@ -1007,19 +983,18 @@ function t(...n) {
1007
983
  //#endregion
1008
984
  //#region src/plugin/bindingify-hook-filter.ts
1009
985
  function generalHookFilterMatcherToFilterExprs(matcher, stringKind) {
1010
- if (typeof matcher === "string" || matcher instanceof RegExp) return [require_filter_expression_index.include(require_filter_expression_index.id(matcher))];
1011
- if (Array.isArray(matcher)) return matcher.map((m) => require_filter_expression_index.include(require_filter_expression_index.id(m)));
1012
- if (matcher.custom) return matcher.custom;
986
+ if (typeof matcher === "string" || matcher instanceof RegExp) return [require_filter_index.include(require_filter_index.id(matcher))];
987
+ if (Array.isArray(matcher)) return matcher.map((m) => require_filter_index.include(require_filter_index.id(m)));
1013
988
  let ret = [];
1014
989
  let isCode = stringKind === "code";
1015
- if (matcher.exclude) ret.push(...arraify(matcher.exclude).map((m) => require_filter_expression_index.exclude(isCode ? require_filter_expression_index.code(m) : require_filter_expression_index.id(m))));
1016
- if (matcher.include) ret.push(...arraify(matcher.include).map((m) => require_filter_expression_index.include(isCode ? require_filter_expression_index.code(m) : require_filter_expression_index.id(m))));
990
+ if (matcher.exclude) ret.push(...require_filter_index.arraify(matcher.exclude).map((m) => require_filter_index.exclude(isCode ? require_filter_index.code(m) : require_filter_index.id(m))));
991
+ if (matcher.include) ret.push(...require_filter_index.arraify(matcher.include).map((m) => require_filter_index.include(isCode ? require_filter_index.code(m) : require_filter_index.id(m))));
1017
992
  return ret;
1018
993
  }
1019
994
  function transformFilterMatcherToFilterExprs(filterOption) {
1020
995
  if (!filterOption) return void 0;
1021
- const { id: id$1, code: code$1, moduleType: moduleType$1, custom } = filterOption;
1022
- if (custom) return custom;
996
+ if (Array.isArray(filterOption)) return filterOption;
997
+ const { id: id$1, code: code$1, moduleType: moduleType$1 } = filterOption;
1023
998
  let ret = [];
1024
999
  let idIncludes = [];
1025
1000
  let idExcludes = [];
@@ -1029,33 +1004,21 @@ function transformFilterMatcherToFilterExprs(filterOption) {
1029
1004
  if (code$1) [codeIncludes, codeExcludes] = d(generalHookFilterMatcherToFilterExprs(code$1, "code") ?? [], (m) => m.kind === "include");
1030
1005
  ret.push(...idExcludes);
1031
1006
  ret.push(...codeExcludes);
1032
- let cursor;
1007
+ let andExprList = [];
1033
1008
  if (moduleType$1) {
1034
1009
  let moduleTypes = Array.isArray(moduleType$1) ? moduleType$1 : moduleType$1.include ?? [];
1035
- cursor = joinFilterExprsWithOr(moduleTypes.map((m) => require_filter_expression_index.moduleType(m)));
1036
- }
1037
- if (idIncludes.length) {
1038
- let joinedOrExpr = joinFilterExprsWithOr(idIncludes.map((item) => item.expr));
1039
- if (!cursor) cursor = joinedOrExpr;
1040
- else cursor = require_filter_expression_index.and(cursor, joinedOrExpr);
1010
+ andExprList.push(require_filter_index.or(...moduleTypes.map((m) => require_filter_index.moduleType(m))));
1041
1011
  }
1042
- if (codeIncludes.length) {
1043
- let joinedOrExpr = joinFilterExprsWithOr(codeIncludes.map((item) => item.expr));
1044
- if (!cursor) cursor = joinedOrExpr;
1045
- else cursor = require_filter_expression_index.and(cursor, joinedOrExpr);
1046
- }
1047
- if (cursor) ret.push(require_filter_expression_index.include(cursor));
1012
+ if (idIncludes.length) andExprList.push(require_filter_index.or(...idIncludes.map((item) => item.expr)));
1013
+ if (codeIncludes.length) andExprList.push(require_filter_index.or(...codeIncludes.map((item) => item.expr)));
1014
+ if (andExprList.length) ret.push(require_filter_index.include(require_filter_index.and(...andExprList)));
1048
1015
  return ret;
1049
1016
  }
1050
- function joinFilterExprsWithOr(filterExprs) {
1051
- if (filterExprs.length === 1) return filterExprs[0];
1052
- return require_filter_expression_index.or(filterExprs[0], joinFilterExprsWithOr(filterExprs.slice(1)));
1053
- }
1054
- function bindingifyGeneralHookFilter(matcher, stringKind) {
1055
- let filterExprs = generalHookFilterMatcherToFilterExprs(matcher, stringKind);
1056
- let custom = [];
1057
- if (filterExprs) custom = filterExprs.map(bindingifyFilterExpr);
1058
- return { custom: custom.length > 0 ? custom : void 0 };
1017
+ function bindingifyGeneralHookFilter(stringKind, pattern) {
1018
+ let filterExprs = generalHookFilterMatcherToFilterExprs(pattern, stringKind);
1019
+ let ret = [];
1020
+ if (filterExprs) ret = filterExprs.map(bindingifyFilterExpr);
1021
+ return ret.length > 0 ? { value: ret } : void 0;
1059
1022
  }
1060
1023
  function bindingifyFilterExpr(expr) {
1061
1024
  let list = [];
@@ -1065,9 +1028,21 @@ function bindingifyFilterExpr(expr) {
1065
1028
  function bindingifyFilterExprImpl(expr, list) {
1066
1029
  switch (expr.kind) {
1067
1030
  case "and": {
1068
- bindingifyFilterExprImpl(expr.right, list);
1069
- bindingifyFilterExprImpl(expr.left, list);
1070
- list.push({ kind: "And" });
1031
+ let args = expr.args;
1032
+ for (let i$1 = args.length - 1; i$1 >= 0; i$1--) bindingifyFilterExprImpl(args[i$1], list);
1033
+ list.push({
1034
+ kind: "And",
1035
+ payload: args.length
1036
+ });
1037
+ break;
1038
+ }
1039
+ case "or": {
1040
+ let args = expr.args;
1041
+ for (let i$1 = args.length - 1; i$1 >= 0; i$1--) bindingifyFilterExprImpl(args[i$1], list);
1042
+ list.push({
1043
+ kind: "Or",
1044
+ payload: args.length
1045
+ });
1071
1046
  break;
1072
1047
  }
1073
1048
  case "not": {
@@ -1078,21 +1053,21 @@ function bindingifyFilterExprImpl(expr, list) {
1078
1053
  case "id": {
1079
1054
  list.push({
1080
1055
  kind: "Id",
1081
- value: expr.pattern
1056
+ payload: expr.pattern
1082
1057
  });
1083
1058
  break;
1084
1059
  }
1085
1060
  case "moduleType": {
1086
1061
  list.push({
1087
1062
  kind: "ModuleType",
1088
- value: expr.pattern
1063
+ payload: expr.pattern
1089
1064
  });
1090
1065
  break;
1091
1066
  }
1092
1067
  case "code": {
1093
1068
  list.push({
1094
1069
  kind: "Code",
1095
- value: expr.pattern
1070
+ payload: expr.pattern
1096
1071
  });
1097
1072
  break;
1098
1073
  }
@@ -1106,27 +1081,30 @@ function bindingifyFilterExprImpl(expr, list) {
1106
1081
  list.push({ kind: "Exclude" });
1107
1082
  break;
1108
1083
  }
1109
- default: throw new Error(`Unknown filter expression kind: ${expr.kind}`);
1084
+ default: throw new Error(`Unknown filter expression: ${expr}`);
1110
1085
  }
1111
1086
  }
1112
1087
  function bindingifyResolveIdFilter(filterOption) {
1113
- return filterOption?.id ? bindingifyGeneralHookFilter(filterOption.id, "id") : void 0;
1088
+ if (!filterOption) return void 0;
1089
+ if (Array.isArray(filterOption)) return { value: filterOption.map(bindingifyFilterExpr) };
1090
+ return filterOption.id ? bindingifyGeneralHookFilter("id", filterOption.id) : void 0;
1114
1091
  }
1115
1092
  function bindingifyLoadFilter(filterOption) {
1116
- return filterOption?.id ? bindingifyGeneralHookFilter(filterOption.id, "id") : void 0;
1093
+ if (!filterOption) return void 0;
1094
+ if (Array.isArray(filterOption)) return { value: filterOption.map(bindingifyFilterExpr) };
1095
+ return filterOption.id ? bindingifyGeneralHookFilter("id", filterOption.id) : void 0;
1117
1096
  }
1118
1097
  function bindingifyTransformFilter(filterOption) {
1119
1098
  if (!filterOption) return void 0;
1120
- let custom = transformFilterMatcherToFilterExprs(filterOption);
1099
+ let filterExprs = transformFilterMatcherToFilterExprs(filterOption);
1121
1100
  let ret = [];
1122
- if (custom) ret = custom.map(bindingifyFilterExpr);
1123
- return { custom: ret.length > 0 ? ret : void 0 };
1101
+ if (filterExprs) ret = filterExprs.map(bindingifyFilterExpr);
1102
+ return { value: ret.length > 0 ? ret : void 0 };
1124
1103
  }
1125
1104
  function bindingifyRenderChunkFilter(filterOption) {
1126
- if (filterOption) {
1127
- const { code: code$1 } = filterOption;
1128
- return { custom: code$1 ? bindingifyGeneralHookFilter(code$1, "code").custom : void 0 };
1129
- }
1105
+ if (!filterOption) return void 0;
1106
+ if (Array.isArray(filterOption)) return { value: filterOption.map(bindingifyFilterExpr) };
1107
+ return filterOption.code ? bindingifyGeneralHookFilter("code", filterOption.code) : void 0;
1130
1108
  }
1131
1109
 
1132
1110
  //#endregion
@@ -1208,12 +1186,12 @@ var PluginContextImpl = class extends MinimalPluginContextImpl {
1208
1186
  const info = this.data.getModuleOption(res.id) || {};
1209
1187
  return {
1210
1188
  ...res,
1211
- external: res.external === "relative" ? unreachable(`The PluginContext resolve result external couldn't be 'relative'`) : res.external,
1189
+ external: res.external === "relative" ? require_filter_index.unreachable(`The PluginContext resolve result external couldn't be 'relative'`) : res.external,
1212
1190
  ...info
1213
1191
  };
1214
1192
  }
1215
1193
  emitFile = (file) => {
1216
- if (file.type === "prebuilt-chunk") return unimplemented("PluginContext.emitFile with type prebuilt-chunk");
1194
+ if (file.type === "prebuilt-chunk") return require_filter_index.unimplemented("PluginContext.emitFile with type prebuilt-chunk");
1217
1195
  if (file.type === "chunk") return this.context.emitChunk(file);
1218
1196
  const fnSanitizedFileName = file.fileName || typeof this.outputOptions.sanitizeFileName !== "function" ? void 0 : this.outputOptions.sanitizeFileName(file.name || "asset");
1219
1197
  const filename = file.fileName ? void 0 : this.getAssetFileNames(file);
@@ -1558,7 +1536,7 @@ function bindingifyFormat(format) {
1558
1536
  case "iife": return "iife";
1559
1537
  case "umd": return "umd";
1560
1538
  case "experimental-app": return "app";
1561
- default: unimplemented(`output.format: ${format}`);
1539
+ default: require_filter_index.unimplemented(`output.format: ${format}`);
1562
1540
  }
1563
1541
  }
1564
1542
  function bindingifySourcemap(sourcemap) {
@@ -2352,7 +2330,7 @@ function bindingifyExternal(external) {
2352
2330
  if (id$1.startsWith("\0")) return false;
2353
2331
  return external(id$1, importer, isResolved) ?? false;
2354
2332
  };
2355
- const externalArr = arraify(external);
2333
+ const externalArr = require_filter_index.arraify(external);
2356
2334
  return (id$1, _importer, _isResolved) => {
2357
2335
  return externalArr.some((pat) => {
2358
2336
  if (pat instanceof RegExp) return pat.test(id$1);
@@ -2367,7 +2345,7 @@ function bindingifyResolve(resolve) {
2367
2345
  return {
2368
2346
  alias: alias ? Object.entries(alias).map(([name, replacement]) => ({
2369
2347
  find: name,
2370
- replacements: arraify(replacement)
2348
+ replacements: require_filter_index.arraify(replacement)
2371
2349
  })) : void 0,
2372
2350
  extensionAlias: extensionAlias ? Object.entries(extensionAlias).map(([name, value]) => ({
2373
2351
  target: name,
@@ -2614,7 +2592,7 @@ function createComposedPlugin(plugins) {
2614
2592
  if (symbolForCallerThatSkipSelf === handlerSymbol) continue;
2615
2593
  const { handler: handlerFn } = normalizeHook(handler);
2616
2594
  const result = await handlerFn.call(applyFixedPluginResolveFn(this, plugin), source, importer, rawHookResolveIdOptions);
2617
- if (!isNullish(result)) return result;
2595
+ if (!require_filter_index.isNullish(result)) return result;
2618
2596
  }
2619
2597
  };
2620
2598
  }
@@ -2640,7 +2618,7 @@ function createComposedPlugin(plugins) {
2640
2618
  for (const [handler, plugin] of batchedHandlers) {
2641
2619
  const { handler: handlerFn } = normalizeHook(handler);
2642
2620
  const result = await handlerFn.call(applyFixedPluginResolveFn(this, plugin), id$1);
2643
- if (!isNullish(result)) return result;
2621
+ if (!require_filter_index.isNullish(result)) return result;
2644
2622
  }
2645
2623
  };
2646
2624
  }
@@ -2662,7 +2640,7 @@ function createComposedPlugin(plugins) {
2662
2640
  throw new Error(`The getCombinedSourcemap is not implement in transform hook at composedJsPlugins`);
2663
2641
  };
2664
2642
  const result = await handlerFn.call(applyFixedPluginResolveFn(this, plugin), code$1, id$1, moduleType$1);
2665
- if (!isNullish(result)) {
2643
+ if (!require_filter_index.isNullish(result)) {
2666
2644
  if (typeof result === "string") updateOutput(result);
2667
2645
  else if (result.code) updateOutput(result.code, result.moduleSideEffects);
2668
2646
  }
@@ -2694,7 +2672,7 @@ function createComposedPlugin(plugins) {
2694
2672
  for (const [handler, plugin] of batchedHandlers) {
2695
2673
  const { handler: handlerFn } = normalizeHook(handler);
2696
2674
  const result = await handlerFn.call(applyFixedPluginResolveFn(this, plugin), code$1, chunk, options, meta);
2697
- if (!isNullish(result)) return result;
2675
+ if (!require_filter_index.isNullish(result)) return result;
2698
2676
  }
2699
2677
  };
2700
2678
  }
@@ -3061,8 +3039,8 @@ var Watcher = class {
3061
3039
  }
3062
3040
  };
3063
3041
  async function createWatcher(emitter, input) {
3064
- const options = arraify(input);
3065
- const bundlerOptions = await Promise.all(options.map((option) => arraify(option.output || {}).map(async (output) => {
3042
+ const options = require_filter_index.arraify(input);
3043
+ const bundlerOptions = await Promise.all(options.map((option) => require_filter_index.arraify(option.output || {}).map(async (output) => {
3066
3044
  const inputOptions = await PluginDriver.callOptionsHook(option, true);
3067
3045
  return createBundlerOptions(inputOptions, output, true);
3068
3046
  })).flat());
@@ -3090,46 +3068,6 @@ const watch = (input) => {
3090
3068
  return emitter;
3091
3069
  };
3092
3070
 
3093
- //#endregion
3094
- //#region src/plugin/with-filter.ts
3095
- function withFilterImpl(pluginOption, filterObjectList) {
3096
- if (isPromiseLike(pluginOption)) return pluginOption.then((p) => withFilter(p, filterObjectList));
3097
- if (pluginOption == false || pluginOption == null) return pluginOption;
3098
- if (Array.isArray(pluginOption)) return pluginOption.map((p) => withFilter(p, filterObjectList));
3099
- let plugin = pluginOption;
3100
- let filterObjectIndex = findMatchedFilterObject(plugin.name, filterObjectList);
3101
- if (filterObjectIndex === -1) return plugin;
3102
- let filterObject = filterObjectList[filterObjectIndex];
3103
- Object.keys(plugin).forEach((key) => {
3104
- switch (key) {
3105
- case "transform":
3106
- case "resolveId":
3107
- case "load":
3108
- if (!plugin[key]) return;
3109
- if (typeof plugin[key] === "object") plugin[key].filter = filterObject[key] ?? plugin[key].filter;
3110
- else plugin[key] = {
3111
- handler: plugin[key],
3112
- filter: filterObject[key]
3113
- };
3114
- break;
3115
- default: break;
3116
- }
3117
- });
3118
- return plugin;
3119
- }
3120
- function withFilter(pluginOption, filterObject) {
3121
- return withFilterImpl(pluginOption, arraify(filterObject));
3122
- }
3123
- function findMatchedFilterObject(pluginName, overrideFilterObjectList) {
3124
- if (overrideFilterObjectList.length === 1 && overrideFilterObjectList[0].pluginNamePattern === void 0) return 0;
3125
- for (let i$1 = 0; i$1 < overrideFilterObjectList.length; i$1++) for (let j = 0; j < (overrideFilterObjectList[i$1].pluginNamePattern ?? []).length; j++) {
3126
- let pattern = overrideFilterObjectList[i$1].pluginNamePattern[j];
3127
- if (typeof pattern === "string" && pattern === pluginName) return i$1;
3128
- else if (pattern instanceof RegExp && pattern.test(pluginName)) return i$1;
3129
- }
3130
- return -1;
3131
- }
3132
-
3133
3071
  //#endregion
3134
3072
  //#region src/utils/define-config.ts
3135
3073
  function defineConfig(config) {
@@ -3159,12 +3097,6 @@ Object.defineProperty(exports, 'VERSION', {
3159
3097
  return VERSION;
3160
3098
  }
3161
3099
  });
3162
- Object.defineProperty(exports, 'arraify', {
3163
- enumerable: true,
3164
- get: function () {
3165
- return arraify;
3166
- }
3167
- });
3168
3100
  Object.defineProperty(exports, 'bindingifyPlugin', {
3169
3101
  enumerable: true,
3170
3102
  get: function () {
@@ -3332,10 +3264,4 @@ Object.defineProperty(exports, 'watch', {
3332
3264
  get: function () {
3333
3265
  return watch;
3334
3266
  }
3335
- });
3336
- Object.defineProperty(exports, 'withFilter', {
3337
- enumerable: true,
3338
- get: function () {
3339
- return withFilter;
3340
- }
3341
3267
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rolldown",
3
- "version": "1.0.0-beta.8-commit.852c603",
3
+ "version": "1.0.0-beta.8-commit.baf6ca1",
4
4
  "description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
5
5
  "type": "commonjs",
6
6
  "homepage": "https://rolldown.rs/",
@@ -39,10 +39,10 @@
39
39
  "import": "./dist/experimental-index.mjs"
40
40
  },
41
41
  "./filter": {
42
- "require": "./dist/filter-expression-index.cjs",
43
- "import": "./dist/filter-expression-index.mjs"
42
+ "require": "./dist/filter-index.cjs",
43
+ "import": "./dist/filter-index.mjs"
44
44
  },
45
- "./parallel-plugin": {
45
+ "./parallelPlugin": {
46
46
  "require": "./dist/parallel-plugin.cjs",
47
47
  "import": "./dist/parallel-plugin.mjs"
48
48
  },
@@ -123,22 +123,22 @@
123
123
  "typedoc": "^0.28.0",
124
124
  "typescript": "^5.7.3",
125
125
  "unbuild": "^3.0.0",
126
- "rolldown": "1.0.0-beta.8-commit.852c603",
127
- "@rolldown/testing": "0.0.1"
126
+ "@rolldown/testing": "0.0.1",
127
+ "rolldown": "1.0.0-beta.8-commit.baf6ca1"
128
128
  },
129
129
  "optionalDependencies": {
130
- "@rolldown/binding-darwin-x64": "1.0.0-beta.8-commit.852c603",
131
- "@rolldown/binding-darwin-arm64": "1.0.0-beta.8-commit.852c603",
132
- "@rolldown/binding-freebsd-x64": "1.0.0-beta.8-commit.852c603",
133
- "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.8-commit.852c603",
134
- "@rolldown/binding-linux-arm64-musl": "1.0.0-beta.8-commit.852c603",
135
- "@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.8-commit.852c603",
136
- "@rolldown/binding-linux-x64-gnu": "1.0.0-beta.8-commit.852c603",
137
- "@rolldown/binding-linux-x64-musl": "1.0.0-beta.8-commit.852c603",
138
- "@rolldown/binding-wasm32-wasi": "1.0.0-beta.8-commit.852c603",
139
- "@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.8-commit.852c603",
140
- "@rolldown/binding-win32-x64-msvc": "1.0.0-beta.8-commit.852c603",
141
- "@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.8-commit.852c603"
130
+ "@rolldown/binding-darwin-arm64": "1.0.0-beta.8-commit.baf6ca1",
131
+ "@rolldown/binding-darwin-x64": "1.0.0-beta.8-commit.baf6ca1",
132
+ "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.8-commit.baf6ca1",
133
+ "@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.8-commit.baf6ca1",
134
+ "@rolldown/binding-freebsd-x64": "1.0.0-beta.8-commit.baf6ca1",
135
+ "@rolldown/binding-linux-arm64-musl": "1.0.0-beta.8-commit.baf6ca1",
136
+ "@rolldown/binding-linux-x64-gnu": "1.0.0-beta.8-commit.baf6ca1",
137
+ "@rolldown/binding-wasm32-wasi": "1.0.0-beta.8-commit.baf6ca1",
138
+ "@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.8-commit.baf6ca1",
139
+ "@rolldown/binding-linux-x64-musl": "1.0.0-beta.8-commit.baf6ca1",
140
+ "@rolldown/binding-win32-x64-msvc": "1.0.0-beta.8-commit.baf6ca1",
141
+ "@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.8-commit.baf6ca1"
142
142
  },
143
143
  "scripts": {
144
144
  "# Scrips for binding #": "_",
@@ -1,11 +0,0 @@
1
- const require_filter_expression_index = require('./shared/filter-expression-index-CRtoeipP.cjs');
2
-
3
- exports.And = require_filter_expression_index.And
4
- exports.and = require_filter_expression_index.and
5
- exports.code = require_filter_expression_index.code
6
- exports.exclude = require_filter_expression_index.exclude
7
- exports.id = require_filter_expression_index.id
8
- exports.include = require_filter_expression_index.include
9
- exports.moduleType = require_filter_expression_index.moduleType
10
- exports.not = require_filter_expression_index.not
11
- exports.or = require_filter_expression_index.or
@@ -1,4 +0,0 @@
1
- import { And, and, code, exclude, id, include, init_filter_expression_index, moduleType, not, or } from "./shared/filter-expression-index-BKmgnKlV.mjs";
2
-
3
- init_filter_expression_index();
4
- export { And, and, code, exclude, id, include, moduleType, not, or };
@@ -1,69 +0,0 @@
1
- import { __esm } from "./chunk-DUYDk_2O.mjs";
2
-
3
- //#region src/filter-expression-index.ts
4
- function and(left, right) {
5
- return {
6
- kind: "and",
7
- left,
8
- right
9
- };
10
- }
11
- function or(left, right) {
12
- return {
13
- kind: "or",
14
- left,
15
- right
16
- };
17
- }
18
- function not(expr) {
19
- return {
20
- kind: "not",
21
- expr
22
- };
23
- }
24
- function id(pattern) {
25
- return {
26
- kind: "id",
27
- pattern
28
- };
29
- }
30
- function moduleType(pattern) {
31
- return {
32
- kind: "moduleType",
33
- pattern
34
- };
35
- }
36
- function code(pattern) {
37
- return {
38
- kind: "code",
39
- pattern
40
- };
41
- }
42
- function include(expr) {
43
- return {
44
- kind: "include",
45
- expr
46
- };
47
- }
48
- function exclude(expr) {
49
- return {
50
- kind: "exclude",
51
- expr
52
- };
53
- }
54
- var And;
55
- var init_filter_expression_index = __esm({ "src/filter-expression-index.ts"() {
56
- And = class {
57
- kind;
58
- left;
59
- right;
60
- constructor(left, right) {
61
- this.left = left;
62
- this.right = right;
63
- this.kind = "and";
64
- }
65
- };
66
- } });
67
-
68
- //#endregion
69
- export { And, and, code, exclude, id, include, init_filter_expression_index, moduleType, not, or };
@@ -1,119 +0,0 @@
1
- "use strict";
2
-
3
- //#region src/filter-expression-index.ts
4
- var And = class {
5
- kind;
6
- left;
7
- right;
8
- constructor(left, right) {
9
- this.left = left;
10
- this.right = right;
11
- this.kind = "and";
12
- }
13
- };
14
- function and(left, right) {
15
- return {
16
- kind: "and",
17
- left,
18
- right
19
- };
20
- }
21
- function or(left, right) {
22
- return {
23
- kind: "or",
24
- left,
25
- right
26
- };
27
- }
28
- function not(expr) {
29
- return {
30
- kind: "not",
31
- expr
32
- };
33
- }
34
- function id(pattern) {
35
- return {
36
- kind: "id",
37
- pattern
38
- };
39
- }
40
- function moduleType(pattern) {
41
- return {
42
- kind: "moduleType",
43
- pattern
44
- };
45
- }
46
- function code(pattern) {
47
- return {
48
- kind: "code",
49
- pattern
50
- };
51
- }
52
- function include(expr) {
53
- return {
54
- kind: "include",
55
- expr
56
- };
57
- }
58
- function exclude(expr) {
59
- return {
60
- kind: "exclude",
61
- expr
62
- };
63
- }
64
-
65
- //#endregion
66
- Object.defineProperty(exports, 'And', {
67
- enumerable: true,
68
- get: function () {
69
- return And;
70
- }
71
- });
72
- Object.defineProperty(exports, 'and', {
73
- enumerable: true,
74
- get: function () {
75
- return and;
76
- }
77
- });
78
- Object.defineProperty(exports, 'code', {
79
- enumerable: true,
80
- get: function () {
81
- return code;
82
- }
83
- });
84
- Object.defineProperty(exports, 'exclude', {
85
- enumerable: true,
86
- get: function () {
87
- return exclude;
88
- }
89
- });
90
- Object.defineProperty(exports, 'id', {
91
- enumerable: true,
92
- get: function () {
93
- return id;
94
- }
95
- });
96
- Object.defineProperty(exports, 'include', {
97
- enumerable: true,
98
- get: function () {
99
- return include;
100
- }
101
- });
102
- Object.defineProperty(exports, 'moduleType', {
103
- enumerable: true,
104
- get: function () {
105
- return moduleType;
106
- }
107
- });
108
- Object.defineProperty(exports, 'not', {
109
- enumerable: true,
110
- get: function () {
111
- return not;
112
- }
113
- });
114
- Object.defineProperty(exports, 'or', {
115
- enumerable: true,
116
- get: function () {
117
- return or;
118
- }
119
- });