@forsakringskassan/vite-lib-config 4.8.0 → 4.8.2

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.
@@ -288,18 +288,18 @@ var require_uFuzzy = __commonJS({
288
288
  return [new RegExp(reTpl, "i" + uFlag), parts, contrs];
289
289
  };
290
290
  const filter2 = (haystack, needle, idxs) => {
291
- let [query] = prepQuery(needle);
292
- if (query == null)
291
+ let [query2] = prepQuery(needle);
292
+ if (query2 == null)
293
293
  return null;
294
294
  let out = [];
295
295
  if (idxs != null) {
296
296
  for (let i = 0; i < idxs.length; i++) {
297
297
  let idx = idxs[i];
298
- query.test(haystack[idx]) && out.push(idx);
298
+ query2.test(haystack[idx]) && out.push(idx);
299
299
  }
300
300
  } else {
301
301
  for (let i = 0; i < haystack.length; i++)
302
- query.test(haystack[i]) && out.push(i);
302
+ query2.test(haystack[i]) && out.push(i);
303
303
  }
304
304
  return out;
305
305
  };
@@ -307,7 +307,7 @@ var require_uFuzzy = __commonJS({
307
307
  let interBound = new RegExp(_interBound, uFlag);
308
308
  let intraBound = new RegExp(_intraBound, uFlag);
309
309
  const info = (idxs, haystack, needle) => {
310
- let [query, parts, contrs] = prepQuery(needle, 1);
310
+ let [query2, parts, contrs] = prepQuery(needle, 1);
311
311
  let partsCased = split(needle, true);
312
312
  let [queryR] = prepQuery(needle, 2);
313
313
  let partsLen = parts.length;
@@ -353,7 +353,7 @@ var require_uFuzzy = __commonJS({
353
353
  let ii2 = 0;
354
354
  for (let i = 0; i < idxs.length; i++) {
355
355
  let mhstr = haystack[idxs[i]];
356
- let m = mhstr.match(query);
356
+ let m = mhstr.match(query2);
357
357
  let start = m.index + m[1].length;
358
358
  let idxAcc = start;
359
359
  let disc = false;
@@ -1226,8 +1226,8 @@ var require_scan = __commonJS({
1226
1226
  CHAR_RIGHT_SQUARE_BRACKET
1227
1227
  /* ] */
1228
1228
  } = require_constants();
1229
- var isPathSeparator = (code) => {
1230
- return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
1229
+ var isPathSeparator = (code2) => {
1230
+ return code2 === CHAR_FORWARD_SLASH || code2 === CHAR_BACKWARD_SLASH;
1231
1231
  };
1232
1232
  var depth = (token) => {
1233
1233
  if (token.isPrefix !== true) {
@@ -1257,38 +1257,38 @@ var require_scan = __commonJS({
1257
1257
  let finished = false;
1258
1258
  let braces = 0;
1259
1259
  let prev;
1260
- let code;
1260
+ let code2;
1261
1261
  let token = { value: "", depth: 0, isGlob: false };
1262
1262
  const eos = () => index >= length;
1263
1263
  const peek = () => str.charCodeAt(index + 1);
1264
1264
  const advance = () => {
1265
- prev = code;
1265
+ prev = code2;
1266
1266
  return str.charCodeAt(++index);
1267
1267
  };
1268
1268
  while (index < length) {
1269
- code = advance();
1269
+ code2 = advance();
1270
1270
  let next;
1271
- if (code === CHAR_BACKWARD_SLASH) {
1271
+ if (code2 === CHAR_BACKWARD_SLASH) {
1272
1272
  backslashes = token.backslashes = true;
1273
- code = advance();
1274
- if (code === CHAR_LEFT_CURLY_BRACE) {
1273
+ code2 = advance();
1274
+ if (code2 === CHAR_LEFT_CURLY_BRACE) {
1275
1275
  braceEscaped = true;
1276
1276
  }
1277
1277
  continue;
1278
1278
  }
1279
- if (braceEscaped === true || code === CHAR_LEFT_CURLY_BRACE) {
1279
+ if (braceEscaped === true || code2 === CHAR_LEFT_CURLY_BRACE) {
1280
1280
  braces++;
1281
- while (eos() !== true && (code = advance())) {
1282
- if (code === CHAR_BACKWARD_SLASH) {
1281
+ while (eos() !== true && (code2 = advance())) {
1282
+ if (code2 === CHAR_BACKWARD_SLASH) {
1283
1283
  backslashes = token.backslashes = true;
1284
1284
  advance();
1285
1285
  continue;
1286
1286
  }
1287
- if (code === CHAR_LEFT_CURLY_BRACE) {
1287
+ if (code2 === CHAR_LEFT_CURLY_BRACE) {
1288
1288
  braces++;
1289
1289
  continue;
1290
1290
  }
1291
- if (braceEscaped !== true && code === CHAR_DOT && (code = advance()) === CHAR_DOT) {
1291
+ if (braceEscaped !== true && code2 === CHAR_DOT && (code2 = advance()) === CHAR_DOT) {
1292
1292
  isBrace = token.isBrace = true;
1293
1293
  isGlob = token.isGlob = true;
1294
1294
  finished = true;
@@ -1297,7 +1297,7 @@ var require_scan = __commonJS({
1297
1297
  }
1298
1298
  break;
1299
1299
  }
1300
- if (braceEscaped !== true && code === CHAR_COMMA) {
1300
+ if (braceEscaped !== true && code2 === CHAR_COMMA) {
1301
1301
  isBrace = token.isBrace = true;
1302
1302
  isGlob = token.isGlob = true;
1303
1303
  finished = true;
@@ -1306,7 +1306,7 @@ var require_scan = __commonJS({
1306
1306
  }
1307
1307
  break;
1308
1308
  }
1309
- if (code === CHAR_RIGHT_CURLY_BRACE) {
1309
+ if (code2 === CHAR_RIGHT_CURLY_BRACE) {
1310
1310
  braces--;
1311
1311
  if (braces === 0) {
1312
1312
  braceEscaped = false;
@@ -1321,7 +1321,7 @@ var require_scan = __commonJS({
1321
1321
  }
1322
1322
  break;
1323
1323
  }
1324
- if (code === CHAR_FORWARD_SLASH) {
1324
+ if (code2 === CHAR_FORWARD_SLASH) {
1325
1325
  slashes.push(index);
1326
1326
  tokens.push(token);
1327
1327
  token = { value: "", depth: 0, isGlob: false };
@@ -1334,22 +1334,22 @@ var require_scan = __commonJS({
1334
1334
  continue;
1335
1335
  }
1336
1336
  if (opts.noext !== true) {
1337
- const isExtglobChar = code === CHAR_PLUS || code === CHAR_AT || code === CHAR_ASTERISK || code === CHAR_QUESTION_MARK || code === CHAR_EXCLAMATION_MARK;
1337
+ const isExtglobChar = code2 === CHAR_PLUS || code2 === CHAR_AT || code2 === CHAR_ASTERISK || code2 === CHAR_QUESTION_MARK || code2 === CHAR_EXCLAMATION_MARK;
1338
1338
  if (isExtglobChar === true && peek() === CHAR_LEFT_PARENTHESES) {
1339
1339
  isGlob = token.isGlob = true;
1340
1340
  isExtglob = token.isExtglob = true;
1341
1341
  finished = true;
1342
- if (code === CHAR_EXCLAMATION_MARK && index === start) {
1342
+ if (code2 === CHAR_EXCLAMATION_MARK && index === start) {
1343
1343
  negatedExtglob = true;
1344
1344
  }
1345
1345
  if (scanToEnd === true) {
1346
- while (eos() !== true && (code = advance())) {
1347
- if (code === CHAR_BACKWARD_SLASH) {
1346
+ while (eos() !== true && (code2 = advance())) {
1347
+ if (code2 === CHAR_BACKWARD_SLASH) {
1348
1348
  backslashes = token.backslashes = true;
1349
- code = advance();
1349
+ code2 = advance();
1350
1350
  continue;
1351
1351
  }
1352
- if (code === CHAR_RIGHT_PARENTHESES) {
1352
+ if (code2 === CHAR_RIGHT_PARENTHESES) {
1353
1353
  isGlob = token.isGlob = true;
1354
1354
  finished = true;
1355
1355
  break;
@@ -1360,7 +1360,7 @@ var require_scan = __commonJS({
1360
1360
  break;
1361
1361
  }
1362
1362
  }
1363
- if (code === CHAR_ASTERISK) {
1363
+ if (code2 === CHAR_ASTERISK) {
1364
1364
  if (prev === CHAR_ASTERISK) isGlobstar = token.isGlobstar = true;
1365
1365
  isGlob = token.isGlob = true;
1366
1366
  finished = true;
@@ -1369,7 +1369,7 @@ var require_scan = __commonJS({
1369
1369
  }
1370
1370
  break;
1371
1371
  }
1372
- if (code === CHAR_QUESTION_MARK) {
1372
+ if (code2 === CHAR_QUESTION_MARK) {
1373
1373
  isGlob = token.isGlob = true;
1374
1374
  finished = true;
1375
1375
  if (scanToEnd === true) {
@@ -1377,7 +1377,7 @@ var require_scan = __commonJS({
1377
1377
  }
1378
1378
  break;
1379
1379
  }
1380
- if (code === CHAR_LEFT_SQUARE_BRACKET) {
1380
+ if (code2 === CHAR_LEFT_SQUARE_BRACKET) {
1381
1381
  while (eos() !== true && (next = advance())) {
1382
1382
  if (next === CHAR_BACKWARD_SLASH) {
1383
1383
  backslashes = token.backslashes = true;
@@ -1396,21 +1396,21 @@ var require_scan = __commonJS({
1396
1396
  }
1397
1397
  break;
1398
1398
  }
1399
- if (opts.nonegate !== true && code === CHAR_EXCLAMATION_MARK && index === start) {
1399
+ if (opts.nonegate !== true && code2 === CHAR_EXCLAMATION_MARK && index === start) {
1400
1400
  negated = token.negated = true;
1401
1401
  start++;
1402
1402
  continue;
1403
1403
  }
1404
- if (opts.noparen !== true && code === CHAR_LEFT_PARENTHESES) {
1404
+ if (opts.noparen !== true && code2 === CHAR_LEFT_PARENTHESES) {
1405
1405
  isGlob = token.isGlob = true;
1406
1406
  if (scanToEnd === true) {
1407
- while (eos() !== true && (code = advance())) {
1408
- if (code === CHAR_LEFT_PARENTHESES) {
1407
+ while (eos() !== true && (code2 = advance())) {
1408
+ if (code2 === CHAR_LEFT_PARENTHESES) {
1409
1409
  backslashes = token.backslashes = true;
1410
- code = advance();
1410
+ code2 = advance();
1411
1411
  continue;
1412
1412
  }
1413
- if (code === CHAR_RIGHT_PARENTHESES) {
1413
+ if (code2 === CHAR_RIGHT_PARENTHESES) {
1414
1414
  finished = true;
1415
1415
  break;
1416
1416
  }
@@ -1475,7 +1475,7 @@ var require_scan = __commonJS({
1475
1475
  };
1476
1476
  if (opts.tokens === true) {
1477
1477
  state.maxDepth = 0;
1478
- if (!isPathSeparator(code)) {
1478
+ if (!isPathSeparator(code2)) {
1479
1479
  tokens.push(token);
1480
1480
  }
1481
1481
  state.tokens = tokens;
@@ -2897,14 +2897,14 @@ var require_semver = __commonJS({
2897
2897
  if (!m[4]) {
2898
2898
  this.prerelease = [];
2899
2899
  } else {
2900
- this.prerelease = m[4].split(".").map((id) => {
2901
- if (/^[0-9]+$/.test(id)) {
2902
- const num = +id;
2900
+ this.prerelease = m[4].split(".").map((id2) => {
2901
+ if (/^[0-9]+$/.test(id2)) {
2902
+ const num = +id2;
2903
2903
  if (num >= 0 && num < MAX_SAFE_INTEGER) {
2904
2904
  return num;
2905
2905
  }
2906
2906
  }
2907
- return id;
2907
+ return id2;
2908
2908
  });
2909
2909
  }
2910
2910
  this.build = m[5] ? m[5].split(".") : [];
@@ -3505,6 +3505,47 @@ var require_coerce = __commonJS({
3505
3505
  }
3506
3506
  });
3507
3507
 
3508
+ // node_modules/semver/functions/truncate.js
3509
+ var require_truncate = __commonJS({
3510
+ "node_modules/semver/functions/truncate.js"(exports2, module2) {
3511
+ "use strict";
3512
+ var parse3 = require_parse2();
3513
+ var constants = require_constants2();
3514
+ var SemVer = require_semver();
3515
+ var truncate = (version3, truncation, options) => {
3516
+ if (!constants.RELEASE_TYPES.includes(truncation)) {
3517
+ return null;
3518
+ }
3519
+ const clonedVersion = cloneInputVersion(version3, options);
3520
+ return clonedVersion && doTruncation(clonedVersion, truncation);
3521
+ };
3522
+ var cloneInputVersion = (version3, options) => {
3523
+ const versionStringToParse = version3 instanceof SemVer ? version3.version : version3;
3524
+ return parse3(versionStringToParse, options);
3525
+ };
3526
+ var doTruncation = (version3, truncation) => {
3527
+ if (isPrerelease(truncation)) {
3528
+ return version3.version;
3529
+ }
3530
+ version3.prerelease = [];
3531
+ switch (truncation) {
3532
+ case "major":
3533
+ version3.minor = 0;
3534
+ version3.patch = 0;
3535
+ break;
3536
+ case "minor":
3537
+ version3.patch = 0;
3538
+ break;
3539
+ }
3540
+ return version3.format();
3541
+ };
3542
+ var isPrerelease = (type) => {
3543
+ return type.startsWith("pre");
3544
+ };
3545
+ module2.exports = truncate;
3546
+ }
3547
+ });
3548
+
3508
3549
  // node_modules/semver/internal/lrucache.js
3509
3550
  var require_lrucache = __commonJS({
3510
3551
  "node_modules/semver/internal/lrucache.js"(exports2, module2) {
@@ -3728,7 +3769,7 @@ var require_range = __commonJS({
3728
3769
  debug2("stars", comp);
3729
3770
  return comp;
3730
3771
  };
3731
- var isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
3772
+ var isX = (id2) => !id2 || id2.toLowerCase() === "x" || id2 === "*";
3732
3773
  var replaceTildes = (comp, options) => {
3733
3774
  return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
3734
3775
  };
@@ -4539,6 +4580,7 @@ var require_semver2 = __commonJS({
4539
4580
  var lte = require_lte();
4540
4581
  var cmp = require_cmp();
4541
4582
  var coerce2 = require_coerce();
4583
+ var truncate = require_truncate();
4542
4584
  var Comparator = require_comparator();
4543
4585
  var Range = require_range();
4544
4586
  var satisfies = require_satisfies();
@@ -4577,6 +4619,7 @@ var require_semver2 = __commonJS({
4577
4619
  lte,
4578
4620
  cmp,
4579
4621
  coerce: coerce2,
4622
+ truncate,
4580
4623
  Comparator,
4581
4624
  Range,
4582
4625
  satisfies,
@@ -4621,7 +4664,7 @@ var import_node_fs = __toESM(require("node:fs"), 1);
4621
4664
  var import_vite = require("vite");
4622
4665
  var import_vue = require("vue");
4623
4666
 
4624
- // node_modules/@rolldown/pluginutils/dist/filter/simple-filters.js
4667
+ // node_modules/@rolldown/pluginutils/dist/filter-B_mD-HGz.mjs
4625
4668
  function exactRegex(str, flags) {
4626
4669
  return new RegExp(`^${escapeRegex(str)}$`, flags);
4627
4670
  }
@@ -4630,27 +4673,15 @@ function escapeRegex(str) {
4630
4673
  return str.replace(escapeRegexRE, "\\$&");
4631
4674
  }
4632
4675
  function makeIdFiltersToMatchWithQuery(input) {
4633
- if (!Array.isArray(input)) {
4634
- return makeIdFilterToMatchWithQuery(
4635
- // Array.isArray cannot narrow the type
4636
- // https://github.com/microsoft/TypeScript/issues/17002
4637
- input
4638
- );
4639
- }
4676
+ if (!Array.isArray(input)) return makeIdFilterToMatchWithQuery(input);
4640
4677
  return input.map((i) => makeIdFilterToMatchWithQuery(i));
4641
4678
  }
4642
4679
  function makeIdFilterToMatchWithQuery(input) {
4643
- if (typeof input === "string") {
4644
- return `${input}{?*,}`;
4645
- }
4680
+ if (typeof input === "string") return `${input}{?*,}`;
4646
4681
  return makeRegexIdFilterToMatchWithQuery(input);
4647
4682
  }
4648
4683
  function makeRegexIdFilterToMatchWithQuery(input) {
4649
- return new RegExp(
4650
- // replace `$` with `(?:\?.*)?$` (ignore `\$`)
4651
- input.source.replace(/(?<!\\)\$/g, "(?:\\?.*)?$"),
4652
- input.flags
4653
- );
4684
+ return new RegExp(input.source.replace(/(?<!\\)\$/g, "(?:\\?.*)?$"), input.flags);
4654
4685
  }
4655
4686
 
4656
4687
  // node_modules/@vitejs/plugin-vue/dist/index.mjs
@@ -4658,7 +4689,7 @@ var import_node_path = __toESM(require("node:path"), 1);
4658
4689
  var import_node_crypto = __toESM(require("node:crypto"), 1);
4659
4690
  var import_node_tty = require("node:tty");
4660
4691
  var import_node_util = require("node:util");
4661
- var version = "6.0.6";
4692
+ var version = "6.0.7";
4662
4693
  function resolveCompiler(root) {
4663
4694
  const compiler = tryResolveCompiler(root) || tryResolveCompiler();
4664
4695
  if (!compiler) throw new Error("Failed to resolve vue/compiler-sfc.\n@vitejs/plugin-vue requires vue (>=3.2.25) to be present in the dependency tree.");
@@ -4669,23 +4700,23 @@ function tryResolveCompiler(root) {
4669
4700
  if (vueMeta && vueMeta.version.split(".")[0] >= 3) return tryRequire("vue/compiler-sfc", root);
4670
4701
  }
4671
4702
  var _require = (0, import_node_module.createRequire)(__filename);
4672
- function tryRequire(id, from) {
4703
+ function tryRequire(id2, from) {
4673
4704
  try {
4674
- return from ? _require(_require.resolve(id, { paths: [from] })) : _require(id);
4705
+ return from ? _require(_require.resolve(id2, { paths: [from] })) : _require(id2);
4675
4706
  } catch (e) {
4676
4707
  }
4677
4708
  }
4678
- function parseVueRequest(id) {
4679
- const [filename, rawQuery] = id.split(`?`, 2);
4680
- const query = Object.fromEntries(new URLSearchParams(rawQuery));
4681
- if (query.vue != null) query.vue = true;
4682
- if (query.index != null) query.index = Number(query.index);
4683
- if (query.raw != null) query.raw = true;
4684
- if (query.url != null) query.url = true;
4685
- if (query.scoped != null) query.scoped = true;
4709
+ function parseVueRequest(id2) {
4710
+ const [filename, rawQuery] = id2.split(`?`, 2);
4711
+ const query2 = Object.fromEntries(new URLSearchParams(rawQuery));
4712
+ if (query2.vue != null) query2.vue = true;
4713
+ if (query2.index != null) query2.index = Number(query2.index);
4714
+ if (query2.raw != null) query2.raw = true;
4715
+ if (query2.url != null) query2.url = true;
4716
+ if (query2.scoped != null) query2.scoped = true;
4686
4717
  return {
4687
4718
  filename,
4688
- query
4719
+ query: query2
4689
4720
  };
4690
4721
  }
4691
4722
  var cache = /* @__PURE__ */ new Map();
@@ -4718,25 +4749,25 @@ function invalidateDescriptor(filename, hmr = false) {
4718
4749
  _cache.delete(filename);
4719
4750
  if (prev) prevCache.set(filename, prev);
4720
4751
  }
4721
- function getDescriptor(filename, options, createIfNotFound = true, hmr = false, code) {
4752
+ function getDescriptor(filename, options, createIfNotFound = true, hmr = false, code2) {
4722
4753
  const _cache = hmr ? hmrCache : cache;
4723
4754
  if (_cache.has(filename)) return _cache.get(filename);
4724
4755
  if (createIfNotFound) {
4725
- const { descriptor, errors } = createDescriptor(filename, code ?? import_node_fs.default.readFileSync(filename, "utf-8"), options, hmr);
4756
+ const { descriptor, errors } = createDescriptor(filename, code2 ?? import_node_fs.default.readFileSync(filename, "utf-8"), options, hmr);
4726
4757
  if (errors.length && !hmr) throw errors[0];
4727
4758
  return descriptor;
4728
4759
  }
4729
4760
  }
4730
- function getSrcDescriptor(filename, query) {
4731
- if (query.scoped) return cache.get(`${filename}?src=${query.src}`);
4761
+ function getSrcDescriptor(filename, query2) {
4762
+ if (query2.scoped) return cache.get(`${filename}?src=${query2.src}`);
4732
4763
  return cache.get(filename);
4733
4764
  }
4734
- function getTempSrcDescriptor(filename, query) {
4765
+ function getTempSrcDescriptor(filename, query2) {
4735
4766
  return {
4736
4767
  filename,
4737
- id: query.id || "",
4768
+ id: query2.id || "",
4738
4769
  styles: [{
4739
- scoped: query.scoped,
4770
+ scoped: query2.scoped,
4740
4771
  loc: { start: {
4741
4772
  line: 0,
4742
4773
  column: 0
@@ -4759,24 +4790,24 @@ function slash(path3) {
4759
4790
  if (path3.startsWith("\\\\?\\")) return path3;
4760
4791
  return path3.replace(/\\/g, "/");
4761
4792
  }
4762
- function createRollupError(id, error) {
4793
+ function createRollupError(id2, error) {
4763
4794
  const { message, name, stack } = error;
4764
4795
  const rollupError = {
4765
- id,
4796
+ id: id2,
4766
4797
  plugin: "vue",
4767
4798
  message,
4768
4799
  name,
4769
4800
  stack
4770
4801
  };
4771
4802
  if ("code" in error && error.loc) rollupError.loc = {
4772
- file: id,
4803
+ file: id2,
4773
4804
  line: error.loc.start.line,
4774
4805
  column: error.loc.start.column
4775
4806
  };
4776
4807
  return rollupError;
4777
4808
  }
4778
- async function transformTemplateAsModule(code, filename, descriptor, options, pluginContext, ssr, customElement) {
4779
- const result = compile(code, filename, descriptor, options, pluginContext, ssr, customElement);
4809
+ async function transformTemplateAsModule(code2, filename, descriptor, options, pluginContext, ssr, customElement) {
4810
+ const result = compile(code2, filename, descriptor, options, pluginContext, ssr, customElement);
4780
4811
  let returnCode = result.code;
4781
4812
  returnCode += `
4782
4813
  export const multiRoot = ${JSON.stringify(result.multiRoot)}`;
@@ -4789,18 +4820,18 @@ import.meta.hot.accept(({ render }) => {
4789
4820
  map: result.map
4790
4821
  };
4791
4822
  }
4792
- function transformTemplateInMain(code, descriptor, options, pluginContext, ssr, customElement) {
4793
- const result = compile(code, descriptor.filename, descriptor, options, pluginContext, ssr, customElement);
4823
+ function transformTemplateInMain(code2, descriptor, options, pluginContext, ssr, customElement) {
4824
+ const result = compile(code2, descriptor.filename, descriptor, options, pluginContext, ssr, customElement);
4794
4825
  return {
4795
4826
  ...result,
4796
4827
  code: result.code.replace(/\nexport (function|const) (render|ssrRender)/, "\n$1 _sfc_$2")
4797
4828
  };
4798
4829
  }
4799
- function compile(code, filename, descriptor, options, pluginContext, ssr, customElement) {
4830
+ function compile(code2, filename, descriptor, options, pluginContext, ssr, customElement) {
4800
4831
  resolveScript(descriptor, options, ssr, customElement);
4801
4832
  const result = options.compiler.compileTemplate({
4802
4833
  ...resolveTemplateCompilerOptions(descriptor, options, filename, ssr),
4803
- source: code
4834
+ source: code2
4804
4835
  });
4805
4836
  if (result.errors.length) result.errors.forEach((error) => pluginContext.error(typeof error === "string" ? {
4806
4837
  id: filename,
@@ -4817,7 +4848,7 @@ function resolveTemplateCompilerOptions(descriptor, options, filename, ssr) {
4817
4848
  if (!block) return;
4818
4849
  const resolvedScript = getResolvedScript(descriptor, ssr);
4819
4850
  const hasScoped = descriptor.styles.some((s) => s.scoped);
4820
- const { id, cssVars } = descriptor;
4851
+ const { id: id2, cssVars } = descriptor;
4821
4852
  let transformAssetUrls = options.template?.transformAssetUrls;
4822
4853
  let assetUrlOptions;
4823
4854
  if (transformAssetUrls === false) {
@@ -4850,7 +4881,7 @@ function resolveTemplateCompilerOptions(descriptor, options, filename, ssr) {
4850
4881
  return {
4851
4882
  ...options.template,
4852
4883
  vapor: descriptor.vapor,
4853
- id,
4884
+ id: id2,
4854
4885
  ast: canReuseAST(options.compiler.version) ? descriptor.template?.ast : void 0,
4855
4886
  filename,
4856
4887
  scoped: hasScoped,
@@ -4864,7 +4895,7 @@ function resolveTemplateCompilerOptions(descriptor, options, filename, ssr) {
4864
4895
  preprocessOptions,
4865
4896
  compilerOptions: {
4866
4897
  ...options.template?.compilerOptions,
4867
- scopeId: hasScoped ? `data-v-${id}` : void 0,
4898
+ scopeId: hasScoped ? `data-v-${id2}` : void 0,
4868
4899
  bindingMetadata: resolvedScript ? resolvedScript.bindings : void 0,
4869
4900
  expressionPlugins,
4870
4901
  sourceMap: options.sourceMap
@@ -5125,14 +5156,14 @@ function parseFileUrl(input) {
5125
5156
  const path3 = match[2];
5126
5157
  return makeUrl("file:", "", match[1] || "", "", isAbsolutePath(path3) ? path3 : "/" + path3, match[3] || "", match[4] || "");
5127
5158
  }
5128
- function makeUrl(scheme, user, host, port, path3, query, hash) {
5159
+ function makeUrl(scheme, user, host, port, path3, query2, hash) {
5129
5160
  return {
5130
5161
  scheme,
5131
5162
  user,
5132
5163
  host,
5133
5164
  port,
5134
5165
  path: path3,
5135
- query,
5166
+ query: query2,
5136
5167
  hash,
5137
5168
  type: 7
5138
5169
  };
@@ -5430,8 +5461,6 @@ function addSegmentInternal(skipable, map, genLine, genColumn, source, sourceLin
5430
5461
  if (skipable && skipSourceless(line, index)) return;
5431
5462
  return insert(line, index, [genColumn]);
5432
5463
  }
5433
- assert(sourceLine);
5434
- assert(sourceColumn);
5435
5464
  const sourcesIndex = put(sources, source);
5436
5465
  const namesIndex = name ? put(names2, name) : NO_NAME;
5437
5466
  if (sourcesIndex === sourcesContent.length) sourcesContent[sourcesIndex] = content != null ? content : null;
@@ -5449,8 +5478,6 @@ function addSegmentInternal(skipable, map, genLine, genColumn, source, sourceLin
5449
5478
  sourceColumn
5450
5479
  ]);
5451
5480
  }
5452
- function assert(_val) {
5453
- }
5454
5481
  function getIndex(arr, index) {
5455
5482
  for (let i = arr.length; i <= index; i++) arr[i] = [];
5456
5483
  return arr[index];
@@ -5486,7 +5513,6 @@ function skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIn
5486
5513
  function addMappingInternal(skipable, map, mapping2) {
5487
5514
  const { generated, source, original, name, content } = mapping2;
5488
5515
  if (!source) return addSegmentInternal(skipable, map, generated.line - 1, generated.column, null, null, null, null, null);
5489
- assert(original);
5490
5516
  return addSegmentInternal(skipable, map, generated.line - 1, generated.column, source, original.line - 1, original.column, name, content);
5491
5517
  }
5492
5518
  function coerce(value) {
@@ -5893,11 +5919,11 @@ export default (sfc, props) => {
5893
5919
  return target;
5894
5920
  }
5895
5921
  `;
5896
- async function transformMain(code, filename, options, pluginContext, ssr, customElement) {
5922
+ async function transformMain(code2, filename, options, pluginContext, ssr, customElement) {
5897
5923
  const { devServer, isProduction, devToolsEnabled } = options;
5898
5924
  const prevDescriptor = getPrevDescriptor(filename);
5899
- const { descriptor, errors } = createDescriptor(filename, code, options);
5900
- if (import_node_fs.default.existsSync(filename)) getDescriptor(filename, options, true, true, filename.endsWith(".vue") ? void 0 : code);
5925
+ const { descriptor, errors } = createDescriptor(filename, code2, options);
5926
+ if (import_node_fs.default.existsSync(filename)) getDescriptor(filename, options, true, true, filename.endsWith(".vue") ? void 0 : code2);
5901
5927
  if (errors.length) {
5902
5928
  errors.forEach((error) => pluginContext.error(createRollupError(filename, error)));
5903
5929
  return null;
@@ -5973,22 +5999,22 @@ async function transformMain(code, filename, options, pluginContext, ssr, custom
5973
5999
  if (lang && /tsx?$/.test(lang) && !descriptor.script?.src) {
5974
6000
  const { transformWithOxc } = await import("vite");
5975
6001
  if (transformWithOxc) {
5976
- const { code: code2, map } = await transformWithOxc(resolvedCode, filename, {
6002
+ const { code: code3, map } = await transformWithOxc(resolvedCode, filename, {
5977
6003
  ...options.devServer?.config.oxc,
5978
6004
  lang: "ts",
5979
6005
  sourcemap: options.sourceMap
5980
6006
  }, resolvedMap);
5981
- resolvedCode = code2;
6007
+ resolvedCode = code3;
5982
6008
  resolvedMap = resolvedMap ? map : resolvedMap;
5983
6009
  } else {
5984
- const { code: code2, map } = await (0, import_vite.transformWithEsbuild)(resolvedCode, filename, {
6010
+ const { code: code3, map } = await (0, import_vite.transformWithEsbuild)(resolvedCode, filename, {
5985
6011
  target: "esnext",
5986
6012
  charset: "utf8",
5987
6013
  ...options.devServer?.config.esbuild,
5988
6014
  loader: "ts",
5989
6015
  sourcemap: options.sourceMap
5990
6016
  }, resolvedMap);
5991
- resolvedCode = code2;
6017
+ resolvedCode = code3;
5992
6018
  resolvedMap = resolvedMap ? map : resolvedMap;
5993
6019
  }
5994
6020
  }
@@ -6011,8 +6037,8 @@ async function genTemplateCode(descriptor, options, pluginContext, ssr, customEl
6011
6037
  } else {
6012
6038
  if (template.src) await linkSrcToDescriptor(template.src, descriptor, pluginContext, hasScoped);
6013
6039
  const src = template.src || descriptor.filename;
6014
- const query = `?vue&type=template${template.src ? hasScoped ? `&src=${descriptor.id}` : "&src=true" : ""}${hasScoped ? `&scoped=${descriptor.id}` : ``}${attrsToQuery(template.attrs, "js", true)}`;
6015
- const request = JSON.stringify(src + query);
6040
+ const query2 = `?vue&type=template${template.src ? hasScoped ? `&src=${descriptor.id}` : "&src=true" : ""}${hasScoped ? `&scoped=${descriptor.id}` : ``}${attrsToQuery(template.attrs, "js", true)}`;
6041
+ const request = JSON.stringify(src + query2);
6016
6042
  const renderFnName = ssr ? "ssrRender" : "render";
6017
6043
  return {
6018
6044
  code: `import { ${renderFnName} as _sfc_${renderFnName}${needsMultiRoot ? ", multiRoot as _sfc_multiRoot" : ""} } from ${request}`,
@@ -6036,8 +6062,8 @@ async function genScriptCode(descriptor, options, pluginContext, ssr, customElem
6036
6062
  const src = script.src || descriptor.filename;
6037
6063
  const langFallback = script.src && import_node_path.default.extname(src).slice(1) || "js";
6038
6064
  const attrsQuery = attrsToQuery(script.attrs, langFallback);
6039
- const query = `?vue&type=script${script.src ? `&src=true` : ``}${attrsQuery}`;
6040
- const request = JSON.stringify(src + query);
6065
+ const query2 = `?vue&type=script${script.src ? `&src=true` : ``}${attrsQuery}`;
6066
+ const request = JSON.stringify(src + query2);
6041
6067
  scriptCode = `import _sfc_main from ${request}
6042
6068
  export * from ${request}`;
6043
6069
  }
@@ -6072,7 +6098,7 @@ import ${JSON.stringify(styleRequest)}`;
6072
6098
  if (customElement) attachedProps.push([`styles`, `[${descriptor.styles.map((_2, i) => `_style_${i}`).join(",")}]`]);
6073
6099
  }
6074
6100
  if (cssModulesMap) {
6075
- const mappingCode = Object.entries(cssModulesMap).reduce((code, [key, value]) => code + `"${key}":${value},
6101
+ const mappingCode = Object.entries(cssModulesMap).reduce((code2, [key, value]) => code2 + `"${key}":${value},
6076
6102
  `, "{\n") + "}";
6077
6103
  stylesCode += `
6078
6104
  const cssModules = ${mappingCode}`;
@@ -6088,21 +6114,21 @@ function genCSSModulesCode(index, request, moduleName) {
6088
6114
  import ${styleVar} from ${JSON.stringify(moduleRequest)}`, { [exposedName]: styleVar }];
6089
6115
  }
6090
6116
  async function genCustomBlockCode(descriptor, pluginContext) {
6091
- let code = "";
6117
+ let code2 = "";
6092
6118
  for (let index = 0; index < descriptor.customBlocks.length; index++) {
6093
6119
  const block = descriptor.customBlocks[index];
6094
6120
  if (block.src) await linkSrcToDescriptor(block.src, descriptor, pluginContext, false);
6095
6121
  const src = block.src || descriptor.filename;
6096
6122
  const attrsQuery = attrsToQuery(block.attrs, block.type);
6097
6123
  const srcQuery = block.src ? `&src=true` : ``;
6098
- const query = `?vue&type=${block.type}&index=${index}${srcQuery}${attrsQuery}`;
6099
- const request = JSON.stringify(src + query);
6100
- code += `import block${index} from ${request}
6124
+ const query2 = `?vue&type=${block.type}&index=${index}${srcQuery}${attrsQuery}`;
6125
+ const request = JSON.stringify(src + query2);
6126
+ code2 += `import block${index} from ${request}
6101
6127
  `;
6102
- code += `if (typeof block${index} === 'function') block${index}(_sfc_main)
6128
+ code2 += `if (typeof block${index} === 'function') block${index}(_sfc_main)
6103
6129
  `;
6104
6130
  }
6105
- return code;
6131
+ return code2;
6106
6132
  }
6107
6133
  async function linkSrcToDescriptor(src, descriptor, pluginContext, scoped) {
6108
6134
  setSrcDescriptor(((await pluginContext.resolve(src, descriptor.filename))?.id || src).replace(/\?.*$/, ""), descriptor, scoped);
@@ -6118,22 +6144,22 @@ var ignoreList = [
6118
6144
  "generic"
6119
6145
  ];
6120
6146
  function attrsToQuery(attrs, langFallback, forceLangFallback = false) {
6121
- let query = ``;
6147
+ let query2 = ``;
6122
6148
  for (const name in attrs) {
6123
6149
  const value = attrs[name];
6124
- if (!ignoreList.includes(name)) query += `&${encodeURIComponent(name)}${value ? `=${encodeURIComponent(value)}` : ``}`;
6150
+ if (!ignoreList.includes(name)) query2 += `&${encodeURIComponent(name)}${value ? `=${encodeURIComponent(value)}` : ``}`;
6125
6151
  }
6126
- if (langFallback || attrs.lang) query += `lang` in attrs ? forceLangFallback ? `&lang.${langFallback}` : `&lang.${attrs.lang}` : `&lang.${langFallback}`;
6127
- return query;
6152
+ if (langFallback || attrs.lang) query2 += `lang` in attrs ? forceLangFallback ? `&lang.${langFallback}` : `&lang.${attrs.lang}` : `&lang.${langFallback}`;
6153
+ return query2;
6128
6154
  }
6129
- async function transformStyle(code, descriptor, index, options, pluginContext, filename) {
6155
+ async function transformStyle(code2, descriptor, index, options, pluginContext, filename) {
6130
6156
  const block = descriptor.styles[index];
6131
6157
  const result = await options.compiler.compileStyleAsync({
6132
6158
  ...options.style,
6133
6159
  filename: descriptor.filename,
6134
6160
  id: `data-v-${descriptor.id}`,
6135
6161
  isProd: options.isProduction,
6136
- source: code,
6162
+ source: code2,
6137
6163
  scoped: block.scoped,
6138
6164
  ...options.cssDevSourcemap ? { postcssOptions: { map: {
6139
6165
  from: filename,
@@ -6170,10 +6196,10 @@ function vuePlugin(rawOptions = {}) {
6170
6196
  sourceMap: true,
6171
6197
  cssDevSourcemap: false
6172
6198
  });
6173
- const include = (0, import_vue.shallowRef)(rawOptions.include ?? /\.vue$/);
6174
- const exclude = (0, import_vue.shallowRef)(rawOptions.exclude);
6199
+ const include2 = (0, import_vue.shallowRef)(rawOptions.include ?? /\.vue$/);
6200
+ const exclude2 = (0, import_vue.shallowRef)(rawOptions.exclude);
6175
6201
  let optionsHookIsCalled = false;
6176
- const filter2 = (0, import_vue.computed)(() => (0, import_vite.createFilter)(include.value, exclude.value));
6202
+ const filter2 = (0, import_vue.computed)(() => (0, import_vite.createFilter)(include2.value, exclude2.value));
6177
6203
  const customElementFilter = (0, import_vue.computed)(() => {
6178
6204
  const customElement = options.value.features?.customElement || options.value.customElement;
6179
6205
  return typeof customElement === "boolean" ? () => customElement : (0, import_vite.createFilter)(customElement);
@@ -6189,18 +6215,18 @@ function vuePlugin(rawOptions = {}) {
6189
6215
  options.value = value;
6190
6216
  },
6191
6217
  get include() {
6192
- return include.value;
6218
+ return include2.value;
6193
6219
  },
6194
6220
  set include(value) {
6195
6221
  if (optionsHookIsCalled) throw new Error("include cannot be updated after `options` hook is called");
6196
- include.value = value;
6222
+ include2.value = value;
6197
6223
  },
6198
6224
  get exclude() {
6199
- return exclude.value;
6225
+ return exclude2.value;
6200
6226
  },
6201
6227
  set exclude(value) {
6202
6228
  if (optionsHookIsCalled) throw new Error("exclude cannot be updated after `options` hook is called");
6203
- exclude.value = value;
6229
+ exclude2.value = value;
6204
6230
  },
6205
6231
  version
6206
6232
  },
@@ -6256,12 +6282,12 @@ function vuePlugin(rawOptions = {}) {
6256
6282
  options() {
6257
6283
  optionsHookIsCalled = true;
6258
6284
  plugin.transform.filter = { id: {
6259
- include: [...makeIdFiltersToMatchWithQuery(ensureArray(include.value)), /[?&]vue\b/],
6260
- exclude: exclude.value
6285
+ include: [...makeIdFiltersToMatchWithQuery(ensureArray(include2.value)), /[?&]vue\b/],
6286
+ exclude: exclude2.value
6261
6287
  } };
6262
6288
  },
6263
- shouldTransformCachedModule({ id }) {
6264
- if (transformCachedModule && parseVueRequest(id).query.vue) return true;
6289
+ shouldTransformCachedModule({ id: id2 }) {
6290
+ if (transformCachedModule && parseVueRequest(id2).query.vue) return true;
6265
6291
  return false;
6266
6292
  },
6267
6293
  configureServer(server) {
@@ -6275,25 +6301,25 @@ function vuePlugin(rawOptions = {}) {
6275
6301
  },
6276
6302
  resolveId: {
6277
6303
  filter: { id: [exactRegex(EXPORT_HELPER_ID), /[?&]vue\b/] },
6278
- handler(id) {
6279
- if (id === "\0plugin-vue:export-helper") return id;
6280
- if (parseVueRequest(id).query.vue) return id;
6304
+ handler(id2) {
6305
+ if (id2 === "\0plugin-vue:export-helper") return id2;
6306
+ if (parseVueRequest(id2).query.vue) return id2;
6281
6307
  }
6282
6308
  },
6283
6309
  load: {
6284
6310
  filter: { id: [exactRegex(EXPORT_HELPER_ID), /[?&]vue\b/] },
6285
- handler(id, opt) {
6286
- if (id === "\0plugin-vue:export-helper") return helperCode;
6311
+ handler(id2, opt) {
6312
+ if (id2 === "\0plugin-vue:export-helper") return helperCode;
6287
6313
  const ssr = opt?.ssr === true;
6288
- const { filename, query } = parseVueRequest(id);
6289
- if (query.vue) {
6290
- if (query.src) return import_node_fs.default.readFileSync(filename, "utf-8");
6314
+ const { filename, query: query2 } = parseVueRequest(id2);
6315
+ if (query2.vue) {
6316
+ if (query2.src) return import_node_fs.default.readFileSync(filename, "utf-8");
6291
6317
  const descriptor = getDescriptor(filename, options.value);
6292
6318
  let block;
6293
- if (query.type === "script") block = resolveScript(descriptor, options.value, ssr, customElementFilter.value(filename));
6294
- else if (query.type === "template") block = descriptor.template;
6295
- else if (query.type === "style") block = descriptor.styles[query.index];
6296
- else if (query.index != null) block = descriptor.customBlocks[query.index];
6319
+ if (query2.type === "script") block = resolveScript(descriptor, options.value, ssr, customElementFilter.value(filename));
6320
+ else if (query2.type === "template") block = descriptor.template;
6321
+ else if (query2.type === "style") block = descriptor.styles[query2.index];
6322
+ else if (query2.index != null) block = descriptor.customBlocks[query2.index];
6297
6323
  if (block) return {
6298
6324
  code: block.content,
6299
6325
  map: block.map
@@ -6301,17 +6327,17 @@ function vuePlugin(rawOptions = {}) {
6301
6327
  }
6302
6328
  }
6303
6329
  },
6304
- transform: { handler(code, id, opt) {
6330
+ transform: { handler(code2, id2, opt) {
6305
6331
  const ssr = opt?.ssr === true;
6306
- const { filename, query } = parseVueRequest(id);
6307
- if (query.raw || query.url) return;
6308
- if (!filter2.value(filename) && !query.vue) return;
6309
- if (!query.vue) return transformMain(code, filename, options.value, this, ssr, customElementFilter.value(filename));
6332
+ const { filename, query: query2 } = parseVueRequest(id2);
6333
+ if (query2.raw || query2.url) return;
6334
+ if (!filter2.value(filename) && !query2.vue) return;
6335
+ if (!query2.vue) return transformMain(code2, filename, options.value, this, ssr, customElementFilter.value(filename));
6310
6336
  else {
6311
- const descriptor = query.src ? getSrcDescriptor(filename, query) || getTempSrcDescriptor(filename, query) : getDescriptor(filename, options.value);
6312
- if (query.src) this.addWatchFile(filename);
6313
- if (query.type === "template") return transformTemplateAsModule(code, filename, descriptor, options.value, this, ssr, customElementFilter.value(filename));
6314
- else if (query.type === "style") return transformStyle(code, descriptor, Number(query.index || 0), options.value, this, filename);
6337
+ const descriptor = query2.src ? getSrcDescriptor(filename, query2) || getTempSrcDescriptor(filename, query2) : getDescriptor(filename, options.value);
6338
+ if (query2.src) this.addWatchFile(filename);
6339
+ if (query2.type === "template") return transformTemplateAsModule(code2, filename, descriptor, options.value, this, ssr, customElementFilter.value(filename));
6340
+ else if (query2.type === "style") return transformStyle(code2, descriptor, Number(query2.index || 0), options.value, this, filename);
6315
6341
  }
6316
6342
  } }
6317
6343
  };
@@ -9732,8 +9758,8 @@ var SourceMap = class {
9732
9758
  return "data:application/json;charset=utf-8;base64," + btoa(this.toString());
9733
9759
  }
9734
9760
  };
9735
- function guessIndent(code) {
9736
- const lines = code.split("\n");
9761
+ function guessIndent(code2) {
9762
+ const lines = code2.split("\n");
9737
9763
  const tabbed = lines.filter((line) => /^\t+/.test(line));
9738
9764
  const spaced = lines.filter((line) => /^ {2,}/.test(line));
9739
9765
  if (tabbed.length === 0 && spaced.length === 0) {
@@ -10704,26 +10730,26 @@ function toArray(thing) {
10704
10730
  return [thing];
10705
10731
  }
10706
10732
  var escapeMark = "[_#EsCaPe#_]";
10707
- function getMatcherString(id, resolutionBase) {
10708
- if (resolutionBase === false || isAbsolute(id) || id.startsWith("**")) return normalizePath2(id);
10733
+ function getMatcherString(id2, resolutionBase) {
10734
+ if (resolutionBase === false || isAbsolute(id2) || id2.startsWith("**")) return normalizePath2(id2);
10709
10735
  const basePath = normalizePath2(resolve2(resolutionBase || "")).replaceAll(/[-^$*+?.()|[\]{}]/g, `${escapeMark}$&`);
10710
- return join(basePath, normalizePath2(id)).replaceAll(escapeMark, "\\");
10736
+ return join(basePath, normalizePath2(id2)).replaceAll(escapeMark, "\\");
10711
10737
  }
10712
- function createFilter2(include, exclude, options) {
10738
+ function createFilter2(include2, exclude2, options) {
10713
10739
  const resolutionBase = options && options.resolve;
10714
- const getMatcher = (id) => id instanceof RegExp ? id : { test: (what) => {
10715
- const pattern = getMatcherString(id, resolutionBase);
10740
+ const getMatcher = (id2) => id2 instanceof RegExp ? id2 : { test: (what) => {
10741
+ const pattern = getMatcherString(id2, resolutionBase);
10716
10742
  const fn = (0, import_picomatch.default)(pattern, { dot: true });
10717
10743
  const result = fn(what);
10718
10744
  return result;
10719
10745
  } };
10720
- const includeMatchers = toArray(include).map(getMatcher);
10721
- const excludeMatchers = toArray(exclude).map(getMatcher);
10722
- if (!includeMatchers.length && !excludeMatchers.length) return (id) => typeof id === "string" && !id.includes("\0");
10723
- return function result(id) {
10724
- if (typeof id !== "string") return false;
10725
- if (id.includes("\0")) return false;
10726
- const pathId = normalizePath2(id);
10746
+ const includeMatchers = toArray(include2).map(getMatcher);
10747
+ const excludeMatchers = toArray(exclude2).map(getMatcher);
10748
+ if (!includeMatchers.length && !excludeMatchers.length) return (id2) => typeof id2 === "string" && !id2.includes("\0");
10749
+ return function result(id2) {
10750
+ if (typeof id2 !== "string") return false;
10751
+ if (id2.includes("\0")) return false;
10752
+ const pathId = normalizePath2(id2);
10727
10753
  for (const matcher of excludeMatchers) {
10728
10754
  if (matcher instanceof RegExp) matcher.lastIndex = 0;
10729
10755
  if (matcher.test(pathId)) return false;
@@ -10744,20 +10770,20 @@ function PluginPure(options) {
10744
10770
  name: "rollup-plugin-pure",
10745
10771
  transform: {
10746
10772
  order: "post",
10747
- handler(code, id) {
10748
- if (!filter2(id)) {
10773
+ handler(code2, id2) {
10774
+ if (!filter2(id2)) {
10749
10775
  return;
10750
10776
  }
10751
- if (options.functions.every((func) => typeof func === "string" && !code.includes(func))) {
10777
+ if (options.functions.every((func) => typeof func === "string" && !code2.includes(func))) {
10752
10778
  return;
10753
10779
  }
10754
10780
  let ast;
10755
10781
  try {
10756
- ast = this.parse(code);
10782
+ ast = this.parse(code2);
10757
10783
  } catch {
10758
10784
  return null;
10759
10785
  }
10760
- const s = new MagicString(code);
10786
+ const s = new MagicString(code2);
10761
10787
  let offset = 0;
10762
10788
  walk(ast, {
10763
10789
  enter(_node) {
@@ -10811,11 +10837,11 @@ function babelPlugin() {
10811
10837
  name: "fk:babel",
10812
10838
  enforce: "post",
10813
10839
  apply: "build",
10814
- async transform(src, id) {
10815
- if (id === "\0rolldown/runtime.js") {
10840
+ async transform(src, id2) {
10841
+ if (id2 === "\0rolldown/runtime.js") {
10816
10842
  return null;
10817
10843
  }
10818
- const { pathname: filename } = new URL(id, "file://");
10844
+ const { pathname: filename } = new URL(id2, "file://");
10819
10845
  if (!filter.test(filename)) {
10820
10846
  return null;
10821
10847
  }
@@ -10827,9 +10853,9 @@ function babelPlugin() {
10827
10853
  if (!transformed) {
10828
10854
  return null;
10829
10855
  }
10830
- const { code, map } = transformed;
10856
+ const { code: code2, map } = transformed;
10831
10857
  return {
10832
- code: code ?? src,
10858
+ code: code2 ?? src,
10833
10859
  map: map ?? null
10834
10860
  };
10835
10861
  }
@@ -10919,8 +10945,8 @@ function indexHtmlPlugin() {
10919
10945
  },
10920
10946
  load: {
10921
10947
  order: "pre",
10922
- handler(id) {
10923
- if (id === VIRTUAL_ENTRYPOINT) {
10948
+ handler(id2) {
10949
+ if (id2 === VIRTUAL_ENTRYPOINT) {
10924
10950
  return "";
10925
10951
  }
10926
10952
  }