@forsakringskassan/vite-lib-config 2.1.0 → 2.2.1

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.
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.47.11"
8
+ "packageVersion": "7.48.0"
9
9
  }
10
10
  ]
11
11
  }
@@ -204,6 +204,133 @@ var require_picocolors = __commonJS({
204
204
  }
205
205
  });
206
206
 
207
+ // node_modules/has-flag/index.js
208
+ var require_has_flag = __commonJS({
209
+ "node_modules/has-flag/index.js"(exports2, module2) {
210
+ "use strict";
211
+ module2.exports = (flag, argv = process.argv) => {
212
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
213
+ const position = argv.indexOf(prefix + flag);
214
+ const terminatorPosition = argv.indexOf("--");
215
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
216
+ };
217
+ }
218
+ });
219
+
220
+ // node_modules/supports-color/index.js
221
+ var require_supports_color = __commonJS({
222
+ "node_modules/supports-color/index.js"(exports2, module2) {
223
+ "use strict";
224
+ var os = require("os");
225
+ var tty = require("tty");
226
+ var hasFlag = require_has_flag();
227
+ var { env } = process;
228
+ var flagForceColor;
229
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
230
+ flagForceColor = 0;
231
+ } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
232
+ flagForceColor = 1;
233
+ }
234
+ function envForceColor() {
235
+ if ("FORCE_COLOR" in env) {
236
+ if (env.FORCE_COLOR === "true") {
237
+ return 1;
238
+ }
239
+ if (env.FORCE_COLOR === "false") {
240
+ return 0;
241
+ }
242
+ return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
243
+ }
244
+ }
245
+ function translateLevel(level) {
246
+ if (level === 0) {
247
+ return false;
248
+ }
249
+ return {
250
+ level,
251
+ hasBasic: true,
252
+ has256: level >= 2,
253
+ has16m: level >= 3
254
+ };
255
+ }
256
+ function supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
257
+ const noFlagForceColor = envForceColor();
258
+ if (noFlagForceColor !== void 0) {
259
+ flagForceColor = noFlagForceColor;
260
+ }
261
+ const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
262
+ if (forceColor === 0) {
263
+ return 0;
264
+ }
265
+ if (sniffFlags) {
266
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
267
+ return 3;
268
+ }
269
+ if (hasFlag("color=256")) {
270
+ return 2;
271
+ }
272
+ }
273
+ if (haveStream && !streamIsTTY && forceColor === void 0) {
274
+ return 0;
275
+ }
276
+ const min = forceColor || 0;
277
+ if (env.TERM === "dumb") {
278
+ return min;
279
+ }
280
+ if (process.platform === "win32") {
281
+ const osRelease = os.release().split(".");
282
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
283
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
284
+ }
285
+ return 1;
286
+ }
287
+ if ("CI" in env) {
288
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
289
+ return 1;
290
+ }
291
+ return min;
292
+ }
293
+ if ("TEAMCITY_VERSION" in env) {
294
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
295
+ }
296
+ if (env.COLORTERM === "truecolor") {
297
+ return 3;
298
+ }
299
+ if ("TERM_PROGRAM" in env) {
300
+ const version2 = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
301
+ switch (env.TERM_PROGRAM) {
302
+ case "iTerm.app":
303
+ return version2 >= 3 ? 3 : 2;
304
+ case "Apple_Terminal":
305
+ return 2;
306
+ }
307
+ }
308
+ if (/-256(color)?$/i.test(env.TERM)) {
309
+ return 2;
310
+ }
311
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
312
+ return 1;
313
+ }
314
+ if ("COLORTERM" in env) {
315
+ return 1;
316
+ }
317
+ return min;
318
+ }
319
+ function getSupportLevel(stream2, options = {}) {
320
+ const level = supportsColor(stream2, {
321
+ streamIsTTY: stream2 && stream2.isTTY,
322
+ ...options
323
+ });
324
+ return translateLevel(level);
325
+ }
326
+ module2.exports = {
327
+ supportsColor: getSupportLevel,
328
+ stdout: getSupportLevel({ isTTY: tty.isatty(1) }),
329
+ stderr: getSupportLevel({ isTTY: tty.isatty(2) })
330
+ };
331
+ }
332
+ });
333
+
207
334
  // internal/plugin-vue3/node_modules/@vitejs/plugin-vue/dist/index.cjs
208
335
  var require_dist = __commonJS({
209
336
  "internal/plugin-vue3/node_modules/@vitejs/plugin-vue/dist/index.cjs"(exports2, module2) {
@@ -213,7 +340,7 @@ var require_dist = __commonJS({
213
340
  var vite = require("vite");
214
341
  var vue = require("vue");
215
342
  var node_module = require("node:module");
216
- var path5 = require("node:path");
343
+ var path4 = require("node:path");
217
344
  var node_crypto = require("node:crypto");
218
345
  var require$$0 = require("tty");
219
346
  var require$$1 = require("util");
@@ -222,7 +349,7 @@ var require_dist = __commonJS({
222
349
  return e && typeof e === "object" && "default" in e ? e.default : e;
223
350
  }
224
351
  var fs__default = /* @__PURE__ */ _interopDefaultCompat(fs4);
225
- var path__default = /* @__PURE__ */ _interopDefaultCompat(path5);
352
+ var path__default = /* @__PURE__ */ _interopDefaultCompat(path4);
226
353
  var require$$0__default = /* @__PURE__ */ _interopDefaultCompat(require$$0);
227
354
  var require$$1__default = /* @__PURE__ */ _interopDefaultCompat(require$$1);
228
355
  var version2 = "4.6.2";
@@ -272,12 +399,12 @@ var require_dist = __commonJS({
272
399
  query
273
400
  };
274
401
  }
275
- function slash(path6) {
276
- const isExtendedLengthPath = path6.startsWith("\\\\?\\");
402
+ function slash(path5) {
403
+ const isExtendedLengthPath = path5.startsWith("\\\\?\\");
277
404
  if (isExtendedLengthPath) {
278
- return path6;
405
+ return path5;
279
406
  }
280
- return path6.replace(/\\/g, "/");
407
+ return path5.replace(/\\/g, "/");
281
408
  }
282
409
  var cache = /* @__PURE__ */ new Map();
283
410
  var hmrCache = /* @__PURE__ */ new Map();
@@ -771,16 +898,16 @@ import.meta.hot.accept(({ render }) => {
771
898
  }
772
899
  function parseFileUrl(input) {
773
900
  const match2 = fileRegex.exec(input);
774
- const path6 = match2[2];
775
- return makeUrl("file:", "", match2[1] || "", "", isAbsolutePath(path6) ? path6 : "/" + path6, match2[3] || "", match2[4] || "");
901
+ const path5 = match2[2];
902
+ return makeUrl("file:", "", match2[1] || "", "", isAbsolutePath(path5) ? path5 : "/" + path5, match2[3] || "", match2[4] || "");
776
903
  }
777
- function makeUrl(scheme, user, host, port, path6, query, hash) {
904
+ function makeUrl(scheme, user, host, port, path5, query, hash) {
778
905
  return {
779
906
  scheme,
780
907
  user,
781
908
  host,
782
909
  port,
783
- path: path6,
910
+ path: path5,
784
911
  query,
785
912
  hash,
786
913
  type: UrlType.Absolute
@@ -810,11 +937,11 @@ import.meta.hot.accept(({ render }) => {
810
937
  url.type = input ? input.startsWith("?") ? UrlType.Query : input.startsWith("#") ? UrlType.Hash : UrlType.RelativePath : UrlType.Empty;
811
938
  return url;
812
939
  }
813
- function stripPathFilename(path6) {
814
- if (path6.endsWith("/.."))
815
- return path6;
816
- const index = path6.lastIndexOf("/");
817
- return path6.slice(0, index + 1);
940
+ function stripPathFilename(path5) {
941
+ if (path5.endsWith("/.."))
942
+ return path5;
943
+ const index = path5.lastIndexOf("/");
944
+ return path5.slice(0, index + 1);
818
945
  }
819
946
  function mergePaths(url, base) {
820
947
  normalizePath(base, base.type);
@@ -852,14 +979,14 @@ import.meta.hot.accept(({ render }) => {
852
979
  pieces[pointer++] = piece;
853
980
  positive++;
854
981
  }
855
- let path6 = "";
982
+ let path5 = "";
856
983
  for (let i = 1; i < pointer; i++) {
857
- path6 += "/" + pieces[i];
984
+ path5 += "/" + pieces[i];
858
985
  }
859
- if (!path6 || addTrailingSlash && !path6.endsWith("/..")) {
860
- path6 += "/";
986
+ if (!path5 || addTrailingSlash && !path5.endsWith("/..")) {
987
+ path5 += "/";
861
988
  }
862
- url.path = path6;
989
+ url.path = path5;
863
990
  }
864
991
  function resolve$1(input, base) {
865
992
  if (!input && !base)
@@ -900,13 +1027,13 @@ import.meta.hot.accept(({ render }) => {
900
1027
  case UrlType.Query:
901
1028
  return queryHash;
902
1029
  case UrlType.RelativePath: {
903
- const path6 = url.path.slice(1);
904
- if (!path6)
1030
+ const path5 = url.path.slice(1);
1031
+ if (!path5)
905
1032
  return queryHash || ".";
906
- if (isRelative(base || input) && !isRelative(path6)) {
907
- return "./" + path6 + queryHash;
1033
+ if (isRelative(base || input) && !isRelative(path5)) {
1034
+ return "./" + path5 + queryHash;
908
1035
  }
909
- return path6 + queryHash;
1036
+ return path5 + queryHash;
910
1037
  }
911
1038
  case UrlType.AbsolutePath:
912
1039
  return url.path + queryHash;
@@ -919,11 +1046,11 @@ import.meta.hot.accept(({ render }) => {
919
1046
  base += "/";
920
1047
  return resolve$1(input, base);
921
1048
  }
922
- function stripFilename(path6) {
923
- if (!path6)
1049
+ function stripFilename(path5) {
1050
+ if (!path5)
924
1051
  return "";
925
- const index = path6.lastIndexOf("/");
926
- return path6.slice(0, index + 1);
1052
+ const index = path5.lastIndexOf("/");
1053
+ return path5.slice(0, index + 1);
927
1054
  }
928
1055
  var COLUMN$1 = 0;
929
1056
  function maybeSort(mappings, owned) {
@@ -1656,7 +1783,7 @@ import.meta.hot.accept(({ render }) => {
1656
1783
  );
1657
1784
  exports3.colors = [6, 2, 3, 4, 5, 1];
1658
1785
  try {
1659
- const supportsColor = require("supports-color");
1786
+ const supportsColor = require_supports_color();
1660
1787
  if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
1661
1788
  exports3.colors = [
1662
1789
  20,
@@ -2415,7 +2542,7 @@ import ${styleVar} from ${JSON.stringify(moduleRequest)}`,
2415
2542
  cssDevSourcemap: false,
2416
2543
  devToolsEnabled: process.env.NODE_ENV !== "production"
2417
2544
  });
2418
- const filter2 = vue.computed(
2545
+ const filter3 = vue.computed(
2419
2546
  () => vite.createFilter(options.value.include, options.value.exclude)
2420
2547
  );
2421
2548
  const customElementFilter = vue.computed(
@@ -2442,7 +2569,7 @@ import ${styleVar} from ${JSON.stringify(moduleRequest)}`,
2442
2569
  if (typeDepToSFCMap.has(ctx.file)) {
2443
2570
  return handleTypeDepChange(typeDepToSFCMap.get(ctx.file), ctx);
2444
2571
  }
2445
- if (filter2.value(ctx.file)) {
2572
+ if (filter3.value(ctx.file)) {
2446
2573
  return handleHotUpdate(ctx, options.value);
2447
2574
  }
2448
2575
  },
@@ -2526,7 +2653,7 @@ import ${styleVar} from ${JSON.stringify(moduleRequest)}`,
2526
2653
  if (query.raw || query.url) {
2527
2654
  return;
2528
2655
  }
2529
- if (!filter2.value(filename) && !query.vue) {
2656
+ if (!filter3.value(filename) && !query.vue) {
2530
2657
  if (!query.vue && refTransformFilter.value(filename) && options.value.compiler.shouldTransformRef(code)) {
2531
2658
  const result = options.value.compiler.transformRef(code, {
2532
2659
  filename,
@@ -4653,6 +4780,61 @@ var import_deepmerge = __toESM(require_cjs());
4653
4780
  var import_picocolors = __toESM(require_picocolors());
4654
4781
  var import_plugin_vue3 = __toESM(require_plugin_vue3());
4655
4782
 
4783
+ // src/plugins/babel-plugin.ts
4784
+ var babel = __toESM(require("@babel/core"));
4785
+ var filter = /\.(js|ts|vue)$/;
4786
+ function babelPlugin() {
4787
+ return {
4788
+ name: "fk:babel",
4789
+ enforce: "post",
4790
+ apply: "build",
4791
+ async transform(src, id) {
4792
+ const { pathname: filename } = new URL(id, "file://");
4793
+ if (!filter.test(filename)) {
4794
+ return null;
4795
+ }
4796
+ const transformed = await babel.transformAsync(src, {
4797
+ sourceMaps: true,
4798
+ comments: true,
4799
+ filename
4800
+ });
4801
+ if (!transformed) {
4802
+ return null;
4803
+ }
4804
+ const { code, map } = transformed;
4805
+ return {
4806
+ code: code ?? src,
4807
+ map: map ?? null
4808
+ };
4809
+ }
4810
+ };
4811
+ }
4812
+
4813
+ // src/plugins/custom-mapping-plugin.ts
4814
+ var folder = {
4815
+ es: "esm",
4816
+ cjs: "cjs"
4817
+ };
4818
+ function customMappingPlugin() {
4819
+ return {
4820
+ name: "fk:custom-mapping",
4821
+ renderStart(options) {
4822
+ const { format } = options;
4823
+ if (format !== "es" && format !== "cjs") {
4824
+ return;
4825
+ }
4826
+ const replacement = folder[format];
4827
+ options.dir = options.dir?.replace("[custom-format]", replacement);
4828
+ if (typeof options.entryFileNames === "string") {
4829
+ options.entryFileNames = options.entryFileNames.replace(
4830
+ "[custom-format]",
4831
+ replacement
4832
+ );
4833
+ }
4834
+ }
4835
+ };
4836
+ }
4837
+
4656
4838
  // src/plugins/index-html-plugin.ts
4657
4839
  var import_promises = __toESM(require("node:fs/promises"));
4658
4840
  var import_node_path = __toESM(require("node:path"));
@@ -4724,15 +4906,10 @@ function indexHtmlPlugin() {
4724
4906
  }
4725
4907
 
4726
4908
  // src/plugins/package-json-plugin.ts
4727
- var import_posix = __toESM(require("node:path/posix"));
4728
4909
  var mapping = {
4729
4910
  es: "module",
4730
4911
  cjs: "commonjs"
4731
4912
  };
4732
- var folder = {
4733
- es: "esm",
4734
- cjs: "cjs"
4735
- };
4736
4913
  function packageJsonPlugin() {
4737
4914
  return {
4738
4915
  name: "fk:package-json",
@@ -4746,7 +4923,7 @@ function packageJsonPlugin() {
4746
4923
  };
4747
4924
  this.emitFile({
4748
4925
  type: "asset",
4749
- fileName: import_posix.default.join("dist", folder[format], "package.json"),
4926
+ fileName: "package.json",
4750
4927
  source: JSON.stringify(pkg, null, 2)
4751
4928
  });
4752
4929
  }
@@ -5444,11 +5621,11 @@ var qmarksTestNoExtDot = ([$0]) => {
5444
5621
  return (f) => f.length === len && f !== "." && f !== "..";
5445
5622
  };
5446
5623
  var defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
5447
- var path3 = {
5624
+ var path2 = {
5448
5625
  win32: { sep: "\\" },
5449
5626
  posix: { sep: "/" }
5450
5627
  };
5451
- var sep = defaultPlatform === "win32" ? path3.win32.sep : path3.posix.sep;
5628
+ var sep = defaultPlatform === "win32" ? path2.win32.sep : path2.posix.sep;
5452
5629
  minimatch.sep = sep;
5453
5630
  var GLOBSTAR = Symbol("globstar **");
5454
5631
  minimatch.GLOBSTAR = GLOBSTAR;
@@ -5456,8 +5633,8 @@ var qmark2 = "[^/]";
5456
5633
  var star2 = qmark2 + "*?";
5457
5634
  var twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
5458
5635
  var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?";
5459
- var filter = (pattern, options = {}) => (p) => minimatch(p, pattern, options);
5460
- minimatch.filter = filter;
5636
+ var filter2 = (pattern, options = {}) => (p) => minimatch(p, pattern, options);
5637
+ minimatch.filter = filter2;
5461
5638
  var ext = (a, b = {}) => Object.assign({}, a, b);
5462
5639
  var defaults = (def) => {
5463
5640
  if (!def || typeof def !== "object" || !Object.keys(def).length) {
@@ -8530,12 +8707,12 @@ var PathBase = class {
8530
8707
  /**
8531
8708
  * Get the Path object referenced by the string path, resolved from this Path
8532
8709
  */
8533
- resolve(path5) {
8534
- if (!path5) {
8710
+ resolve(path4) {
8711
+ if (!path4) {
8535
8712
  return this;
8536
8713
  }
8537
- const rootPath = this.getRootString(path5);
8538
- const dir = path5.substring(rootPath.length);
8714
+ const rootPath = this.getRootString(path4);
8715
+ const dir = path4.substring(rootPath.length);
8539
8716
  const dirParts = dir.split(this.splitSep);
8540
8717
  const result = rootPath ? this.getRoot(rootPath).#resolveParts(dirParts) : this.#resolveParts(dirParts);
8541
8718
  return result;
@@ -9287,8 +9464,8 @@ var PathWin32 = class _PathWin32 extends PathBase {
9287
9464
  /**
9288
9465
  * @internal
9289
9466
  */
9290
- getRootString(path5) {
9291
- return import_node_path2.win32.parse(path5).root;
9467
+ getRootString(path4) {
9468
+ return import_node_path2.win32.parse(path4).root;
9292
9469
  }
9293
9470
  /**
9294
9471
  * @internal
@@ -9334,8 +9511,8 @@ var PathPosix = class _PathPosix extends PathBase {
9334
9511
  /**
9335
9512
  * @internal
9336
9513
  */
9337
- getRootString(path5) {
9338
- return path5.startsWith("/") ? "/" : "";
9514
+ getRootString(path4) {
9515
+ return path4.startsWith("/") ? "/" : "";
9339
9516
  }
9340
9517
  /**
9341
9518
  * @internal
@@ -9424,11 +9601,11 @@ var PathScurryBase = class {
9424
9601
  /**
9425
9602
  * Get the depth of a provided path, string, or the cwd
9426
9603
  */
9427
- depth(path5 = this.cwd) {
9428
- if (typeof path5 === "string") {
9429
- path5 = this.cwd.resolve(path5);
9604
+ depth(path4 = this.cwd) {
9605
+ if (typeof path4 === "string") {
9606
+ path4 = this.cwd.resolve(path4);
9430
9607
  }
9431
- return path5.depth();
9608
+ return path4.depth();
9432
9609
  }
9433
9610
  /**
9434
9611
  * Return the cache of child entries. Exposed so subclasses can create
@@ -9654,9 +9831,9 @@ var PathScurryBase = class {
9654
9831
  opts = entry;
9655
9832
  entry = this.cwd;
9656
9833
  }
9657
- const { withFileTypes = true, follow = false, filter: filter2, walkFilter } = opts;
9834
+ const { withFileTypes = true, follow = false, filter: filter3, walkFilter } = opts;
9658
9835
  const results = [];
9659
- if (!filter2 || filter2(entry)) {
9836
+ if (!filter3 || filter3(entry)) {
9660
9837
  results.push(withFileTypes ? entry : entry.fullpath());
9661
9838
  }
9662
9839
  const dirs = /* @__PURE__ */ new Set();
@@ -9675,7 +9852,7 @@ var PathScurryBase = class {
9675
9852
  }
9676
9853
  };
9677
9854
  for (const e of entries) {
9678
- if (!filter2 || filter2(e)) {
9855
+ if (!filter3 || filter3(e)) {
9679
9856
  results.push(withFileTypes ? e : e.fullpath());
9680
9857
  }
9681
9858
  if (follow && e.isSymbolicLink()) {
@@ -9706,16 +9883,16 @@ var PathScurryBase = class {
9706
9883
  opts = entry;
9707
9884
  entry = this.cwd;
9708
9885
  }
9709
- const { withFileTypes = true, follow = false, filter: filter2, walkFilter } = opts;
9886
+ const { withFileTypes = true, follow = false, filter: filter3, walkFilter } = opts;
9710
9887
  const results = [];
9711
- if (!filter2 || filter2(entry)) {
9888
+ if (!filter3 || filter3(entry)) {
9712
9889
  results.push(withFileTypes ? entry : entry.fullpath());
9713
9890
  }
9714
9891
  const dirs = /* @__PURE__ */ new Set([entry]);
9715
9892
  for (const dir of dirs) {
9716
9893
  const entries = dir.readdirSync();
9717
9894
  for (const e of entries) {
9718
- if (!filter2 || filter2(e)) {
9895
+ if (!filter3 || filter3(e)) {
9719
9896
  results.push(withFileTypes ? e : e.fullpath());
9720
9897
  }
9721
9898
  let r = e;
@@ -9768,15 +9945,15 @@ var PathScurryBase = class {
9768
9945
  opts = entry;
9769
9946
  entry = this.cwd;
9770
9947
  }
9771
- const { withFileTypes = true, follow = false, filter: filter2, walkFilter } = opts;
9772
- if (!filter2 || filter2(entry)) {
9948
+ const { withFileTypes = true, follow = false, filter: filter3, walkFilter } = opts;
9949
+ if (!filter3 || filter3(entry)) {
9773
9950
  yield withFileTypes ? entry : entry.fullpath();
9774
9951
  }
9775
9952
  const dirs = /* @__PURE__ */ new Set([entry]);
9776
9953
  for (const dir of dirs) {
9777
9954
  const entries = dir.readdirSync();
9778
9955
  for (const e of entries) {
9779
- if (!filter2 || filter2(e)) {
9956
+ if (!filter3 || filter3(e)) {
9780
9957
  yield withFileTypes ? e : e.fullpath();
9781
9958
  }
9782
9959
  let r = e;
@@ -9799,9 +9976,9 @@ var PathScurryBase = class {
9799
9976
  opts = entry;
9800
9977
  entry = this.cwd;
9801
9978
  }
9802
- const { withFileTypes = true, follow = false, filter: filter2, walkFilter } = opts;
9979
+ const { withFileTypes = true, follow = false, filter: filter3, walkFilter } = opts;
9803
9980
  const results = new Minipass({ objectMode: true });
9804
- if (!filter2 || filter2(entry)) {
9981
+ if (!filter3 || filter3(entry)) {
9805
9982
  results.write(withFileTypes ? entry : entry.fullpath());
9806
9983
  }
9807
9984
  const dirs = /* @__PURE__ */ new Set();
@@ -9834,7 +10011,7 @@ var PathScurryBase = class {
9834
10011
  }
9835
10012
  }
9836
10013
  for (const e of entries) {
9837
- if (e && (!filter2 || filter2(e))) {
10014
+ if (e && (!filter3 || filter3(e))) {
9838
10015
  if (!results.write(withFileTypes ? e : e.fullpath())) {
9839
10016
  paused = true;
9840
10017
  }
@@ -9868,10 +10045,10 @@ var PathScurryBase = class {
9868
10045
  opts = entry;
9869
10046
  entry = this.cwd;
9870
10047
  }
9871
- const { withFileTypes = true, follow = false, filter: filter2, walkFilter } = opts;
10048
+ const { withFileTypes = true, follow = false, filter: filter3, walkFilter } = opts;
9872
10049
  const results = new Minipass({ objectMode: true });
9873
10050
  const dirs = /* @__PURE__ */ new Set();
9874
- if (!filter2 || filter2(entry)) {
10051
+ if (!filter3 || filter3(entry)) {
9875
10052
  results.write(withFileTypes ? entry : entry.fullpath());
9876
10053
  }
9877
10054
  const queue = [entry];
@@ -9889,7 +10066,7 @@ var PathScurryBase = class {
9889
10066
  dirs.add(dir);
9890
10067
  const entries = dir.readdirSync();
9891
10068
  for (const e of entries) {
9892
- if (!filter2 || filter2(e)) {
10069
+ if (!filter3 || filter3(e)) {
9893
10070
  if (!results.write(withFileTypes ? e : e.fullpath())) {
9894
10071
  paused = true;
9895
10072
  }
@@ -9915,9 +10092,9 @@ var PathScurryBase = class {
9915
10092
  process2();
9916
10093
  return results;
9917
10094
  }
9918
- chdir(path5 = this.cwd) {
10095
+ chdir(path4 = this.cwd) {
9919
10096
  const oldCwd = this.cwd;
9920
- this.cwd = typeof path5 === "string" ? this.cwd.resolve(path5) : path5;
10097
+ this.cwd = typeof path4 === "string" ? this.cwd.resolve(path4) : path4;
9921
10098
  this.cwd[setAsCwd](oldCwd);
9922
10099
  }
9923
10100
  };
@@ -10273,8 +10450,8 @@ var MatchRecord = class {
10273
10450
  }
10274
10451
  // match, absolute, ifdir
10275
10452
  entries() {
10276
- return [...this.store.entries()].map(([path5, n]) => [
10277
- path5,
10453
+ return [...this.store.entries()].map(([path4, n]) => [
10454
+ path4,
10278
10455
  !!(n & 2),
10279
10456
  !!(n & 1)
10280
10457
  ]);
@@ -10479,9 +10656,9 @@ var GlobUtil = class {
10479
10656
  signal;
10480
10657
  maxDepth;
10481
10658
  includeChildMatches;
10482
- constructor(patterns, path5, opts) {
10659
+ constructor(patterns, path4, opts) {
10483
10660
  this.patterns = patterns;
10484
- this.path = path5;
10661
+ this.path = path4;
10485
10662
  this.opts = opts;
10486
10663
  this.#sep = !opts.posix && opts.platform === "win32" ? "\\" : "/";
10487
10664
  this.includeChildMatches = opts.includeChildMatches !== false;
@@ -10500,11 +10677,11 @@ var GlobUtil = class {
10500
10677
  });
10501
10678
  }
10502
10679
  }
10503
- #ignored(path5) {
10504
- return this.seen.has(path5) || !!this.#ignore?.ignored?.(path5);
10680
+ #ignored(path4) {
10681
+ return this.seen.has(path4) || !!this.#ignore?.ignored?.(path4);
10505
10682
  }
10506
- #childrenIgnored(path5) {
10507
- return !!this.#ignore?.childrenIgnored?.(path5);
10683
+ #childrenIgnored(path4) {
10684
+ return !!this.#ignore?.childrenIgnored?.(path4);
10508
10685
  }
10509
10686
  // backpressure mechanism
10510
10687
  pause() {
@@ -10719,8 +10896,8 @@ var GlobUtil = class {
10719
10896
  };
10720
10897
  var GlobWalker = class extends GlobUtil {
10721
10898
  matches = /* @__PURE__ */ new Set();
10722
- constructor(patterns, path5, opts) {
10723
- super(patterns, path5, opts);
10899
+ constructor(patterns, path4, opts) {
10900
+ super(patterns, path4, opts);
10724
10901
  }
10725
10902
  matchEmit(e) {
10726
10903
  this.matches.add(e);
@@ -10757,8 +10934,8 @@ var GlobWalker = class extends GlobUtil {
10757
10934
  };
10758
10935
  var GlobStream = class extends GlobUtil {
10759
10936
  results;
10760
- constructor(patterns, path5, opts) {
10761
- super(patterns, path5, opts);
10937
+ constructor(patterns, path4, opts) {
10938
+ super(patterns, path4, opts);
10762
10939
  this.results = new Minipass({
10763
10940
  signal: this.signal,
10764
10941
  objectMode: true
@@ -11253,7 +11430,13 @@ var internalDependencies = detectInternalDependencies(
11253
11430
  packages,
11254
11431
  allDependencies
11255
11432
  );
11256
- var defaultPlugins = [indexHtmlPlugin(), packageJsonPlugin(), vuePlugin()];
11433
+ var defaultPlugins = [
11434
+ indexHtmlPlugin(),
11435
+ packageJsonPlugin(),
11436
+ vuePlugin(),
11437
+ customMappingPlugin(),
11438
+ babelPlugin()
11439
+ ];
11257
11440
  var defaultConfig = {
11258
11441
  fk: {},
11259
11442
  plugins: defaultPlugins,
@@ -11269,22 +11452,16 @@ var defaultConfig = {
11269
11452
  emptyOutDir: false,
11270
11453
  minify: false,
11271
11454
  sourcemap: true,
11272
- outDir: "",
11455
+ outDir: "dist/[custom-format]",
11273
11456
  lib: {
11274
11457
  entry: "src/index.ts",
11275
11458
  formats: ["es", "cjs"]
11276
11459
  },
11277
11460
  rollupOptions: {
11278
11461
  output: {
11279
- entryFileNames: `temp/index.[format].js`,
11462
+ entryFileNames: `index.[custom-format].js`,
11280
11463
  globals: {
11281
11464
  vue: "Vue"
11282
- },
11283
- assetFileNames(assetInfo) {
11284
- if (assetInfo.name === "style.css") {
11285
- return "dist/style.css";
11286
- }
11287
- return assetInfo.name ?? "";
11288
11465
  }
11289
11466
  },
11290
11467
  external: Array.from(external)