@forsakringskassan/vite-lib-config 2.0.3 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -0
- package/dist/cli.mjs +1 -8610
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/vite.config.cjs +198 -270
- package/dist/vite.config.mjs +201 -273
- package/package.json +2 -2
package/dist/vite.config.mjs
CHANGED
|
@@ -136,17 +136,16 @@ var require_cjs = __commonJS({
|
|
|
136
136
|
// node_modules/picocolors/picocolors.js
|
|
137
137
|
var require_picocolors = __commonJS({
|
|
138
138
|
"node_modules/picocolors/picocolors.js"(exports, module) {
|
|
139
|
-
var
|
|
140
|
-
var
|
|
141
|
-
var
|
|
139
|
+
var p = process || {};
|
|
140
|
+
var argv = p.argv || [];
|
|
141
|
+
var env = p.env || {};
|
|
142
|
+
var isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
|
|
142
143
|
var formatter = (open, close, replace = open) => (input) => {
|
|
143
|
-
let string = "" + input;
|
|
144
|
-
let index = string.indexOf(close, open.length);
|
|
144
|
+
let string = "" + input, index = string.indexOf(close, open.length);
|
|
145
145
|
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
|
|
146
146
|
};
|
|
147
147
|
var replaceClose = (string, close, replace, index) => {
|
|
148
|
-
let result = "";
|
|
149
|
-
let cursor = 0;
|
|
148
|
+
let result = "", cursor = 0;
|
|
150
149
|
do {
|
|
151
150
|
result += string.substring(cursor, index) + replace;
|
|
152
151
|
cursor = index + close.length;
|
|
@@ -155,50 +154,50 @@ var require_picocolors = __commonJS({
|
|
|
155
154
|
return result + string.substring(cursor);
|
|
156
155
|
};
|
|
157
156
|
var createColors = (enabled = isColorSupported) => {
|
|
158
|
-
let
|
|
157
|
+
let f = enabled ? formatter : () => String;
|
|
159
158
|
return {
|
|
160
159
|
isColorSupported: enabled,
|
|
161
|
-
reset:
|
|
162
|
-
bold:
|
|
163
|
-
dim:
|
|
164
|
-
italic:
|
|
165
|
-
underline:
|
|
166
|
-
inverse:
|
|
167
|
-
hidden:
|
|
168
|
-
strikethrough:
|
|
169
|
-
black:
|
|
170
|
-
red:
|
|
171
|
-
green:
|
|
172
|
-
yellow:
|
|
173
|
-
blue:
|
|
174
|
-
magenta:
|
|
175
|
-
cyan:
|
|
176
|
-
white:
|
|
177
|
-
gray:
|
|
178
|
-
bgBlack:
|
|
179
|
-
bgRed:
|
|
180
|
-
bgGreen:
|
|
181
|
-
bgYellow:
|
|
182
|
-
bgBlue:
|
|
183
|
-
bgMagenta:
|
|
184
|
-
bgCyan:
|
|
185
|
-
bgWhite:
|
|
186
|
-
blackBright:
|
|
187
|
-
redBright:
|
|
188
|
-
greenBright:
|
|
189
|
-
yellowBright:
|
|
190
|
-
blueBright:
|
|
191
|
-
magentaBright:
|
|
192
|
-
cyanBright:
|
|
193
|
-
whiteBright:
|
|
194
|
-
bgBlackBright:
|
|
195
|
-
bgRedBright:
|
|
196
|
-
bgGreenBright:
|
|
197
|
-
bgYellowBright:
|
|
198
|
-
bgBlueBright:
|
|
199
|
-
bgMagentaBright:
|
|
200
|
-
bgCyanBright:
|
|
201
|
-
bgWhiteBright:
|
|
160
|
+
reset: f("\x1B[0m", "\x1B[0m"),
|
|
161
|
+
bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
|
|
162
|
+
dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
|
|
163
|
+
italic: f("\x1B[3m", "\x1B[23m"),
|
|
164
|
+
underline: f("\x1B[4m", "\x1B[24m"),
|
|
165
|
+
inverse: f("\x1B[7m", "\x1B[27m"),
|
|
166
|
+
hidden: f("\x1B[8m", "\x1B[28m"),
|
|
167
|
+
strikethrough: f("\x1B[9m", "\x1B[29m"),
|
|
168
|
+
black: f("\x1B[30m", "\x1B[39m"),
|
|
169
|
+
red: f("\x1B[31m", "\x1B[39m"),
|
|
170
|
+
green: f("\x1B[32m", "\x1B[39m"),
|
|
171
|
+
yellow: f("\x1B[33m", "\x1B[39m"),
|
|
172
|
+
blue: f("\x1B[34m", "\x1B[39m"),
|
|
173
|
+
magenta: f("\x1B[35m", "\x1B[39m"),
|
|
174
|
+
cyan: f("\x1B[36m", "\x1B[39m"),
|
|
175
|
+
white: f("\x1B[37m", "\x1B[39m"),
|
|
176
|
+
gray: f("\x1B[90m", "\x1B[39m"),
|
|
177
|
+
bgBlack: f("\x1B[40m", "\x1B[49m"),
|
|
178
|
+
bgRed: f("\x1B[41m", "\x1B[49m"),
|
|
179
|
+
bgGreen: f("\x1B[42m", "\x1B[49m"),
|
|
180
|
+
bgYellow: f("\x1B[43m", "\x1B[49m"),
|
|
181
|
+
bgBlue: f("\x1B[44m", "\x1B[49m"),
|
|
182
|
+
bgMagenta: f("\x1B[45m", "\x1B[49m"),
|
|
183
|
+
bgCyan: f("\x1B[46m", "\x1B[49m"),
|
|
184
|
+
bgWhite: f("\x1B[47m", "\x1B[49m"),
|
|
185
|
+
blackBright: f("\x1B[90m", "\x1B[39m"),
|
|
186
|
+
redBright: f("\x1B[91m", "\x1B[39m"),
|
|
187
|
+
greenBright: f("\x1B[92m", "\x1B[39m"),
|
|
188
|
+
yellowBright: f("\x1B[93m", "\x1B[39m"),
|
|
189
|
+
blueBright: f("\x1B[94m", "\x1B[39m"),
|
|
190
|
+
magentaBright: f("\x1B[95m", "\x1B[39m"),
|
|
191
|
+
cyanBright: f("\x1B[96m", "\x1B[39m"),
|
|
192
|
+
whiteBright: f("\x1B[97m", "\x1B[39m"),
|
|
193
|
+
bgBlackBright: f("\x1B[100m", "\x1B[49m"),
|
|
194
|
+
bgRedBright: f("\x1B[101m", "\x1B[49m"),
|
|
195
|
+
bgGreenBright: f("\x1B[102m", "\x1B[49m"),
|
|
196
|
+
bgYellowBright: f("\x1B[103m", "\x1B[49m"),
|
|
197
|
+
bgBlueBright: f("\x1B[104m", "\x1B[49m"),
|
|
198
|
+
bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
|
|
199
|
+
bgCyanBright: f("\x1B[106m", "\x1B[49m"),
|
|
200
|
+
bgWhiteBright: f("\x1B[107m", "\x1B[49m")
|
|
202
201
|
};
|
|
203
202
|
};
|
|
204
203
|
module.exports = createColors();
|
|
@@ -206,115 +205,6 @@ var require_picocolors = __commonJS({
|
|
|
206
205
|
}
|
|
207
206
|
});
|
|
208
207
|
|
|
209
|
-
// node_modules/has-flag/index.js
|
|
210
|
-
var require_has_flag = __commonJS({
|
|
211
|
-
"node_modules/has-flag/index.js"(exports, module) {
|
|
212
|
-
"use strict";
|
|
213
|
-
module.exports = (flag, argv) => {
|
|
214
|
-
argv = argv || process.argv;
|
|
215
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
216
|
-
const pos = argv.indexOf(prefix + flag);
|
|
217
|
-
const terminatorPos = argv.indexOf("--");
|
|
218
|
-
return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
|
|
219
|
-
};
|
|
220
|
-
}
|
|
221
|
-
});
|
|
222
|
-
|
|
223
|
-
// node_modules/supports-color/index.js
|
|
224
|
-
var require_supports_color = __commonJS({
|
|
225
|
-
"node_modules/supports-color/index.js"(exports, module) {
|
|
226
|
-
"use strict";
|
|
227
|
-
var os = __require("os");
|
|
228
|
-
var hasFlag = require_has_flag();
|
|
229
|
-
var env = process.env;
|
|
230
|
-
var forceColor;
|
|
231
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) {
|
|
232
|
-
forceColor = false;
|
|
233
|
-
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
234
|
-
forceColor = true;
|
|
235
|
-
}
|
|
236
|
-
if ("FORCE_COLOR" in env) {
|
|
237
|
-
forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
|
|
238
|
-
}
|
|
239
|
-
function translateLevel(level) {
|
|
240
|
-
if (level === 0) {
|
|
241
|
-
return false;
|
|
242
|
-
}
|
|
243
|
-
return {
|
|
244
|
-
level,
|
|
245
|
-
hasBasic: true,
|
|
246
|
-
has256: level >= 2,
|
|
247
|
-
has16m: level >= 3
|
|
248
|
-
};
|
|
249
|
-
}
|
|
250
|
-
function supportsColor(stream2) {
|
|
251
|
-
if (forceColor === false) {
|
|
252
|
-
return 0;
|
|
253
|
-
}
|
|
254
|
-
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
255
|
-
return 3;
|
|
256
|
-
}
|
|
257
|
-
if (hasFlag("color=256")) {
|
|
258
|
-
return 2;
|
|
259
|
-
}
|
|
260
|
-
if (stream2 && !stream2.isTTY && forceColor !== true) {
|
|
261
|
-
return 0;
|
|
262
|
-
}
|
|
263
|
-
const min = forceColor ? 1 : 0;
|
|
264
|
-
if (process.platform === "win32") {
|
|
265
|
-
const osRelease = os.release().split(".");
|
|
266
|
-
if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
267
|
-
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
268
|
-
}
|
|
269
|
-
return 1;
|
|
270
|
-
}
|
|
271
|
-
if ("CI" in env) {
|
|
272
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
273
|
-
return 1;
|
|
274
|
-
}
|
|
275
|
-
return min;
|
|
276
|
-
}
|
|
277
|
-
if ("TEAMCITY_VERSION" in env) {
|
|
278
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
279
|
-
}
|
|
280
|
-
if (env.COLORTERM === "truecolor") {
|
|
281
|
-
return 3;
|
|
282
|
-
}
|
|
283
|
-
if ("TERM_PROGRAM" in env) {
|
|
284
|
-
const version2 = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
285
|
-
switch (env.TERM_PROGRAM) {
|
|
286
|
-
case "iTerm.app":
|
|
287
|
-
return version2 >= 3 ? 3 : 2;
|
|
288
|
-
case "Apple_Terminal":
|
|
289
|
-
return 2;
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
if (/-256(color)?$/i.test(env.TERM)) {
|
|
293
|
-
return 2;
|
|
294
|
-
}
|
|
295
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
296
|
-
return 1;
|
|
297
|
-
}
|
|
298
|
-
if ("COLORTERM" in env) {
|
|
299
|
-
return 1;
|
|
300
|
-
}
|
|
301
|
-
if (env.TERM === "dumb") {
|
|
302
|
-
return min;
|
|
303
|
-
}
|
|
304
|
-
return min;
|
|
305
|
-
}
|
|
306
|
-
function getSupportLevel(stream2) {
|
|
307
|
-
const level = supportsColor(stream2);
|
|
308
|
-
return translateLevel(level);
|
|
309
|
-
}
|
|
310
|
-
module.exports = {
|
|
311
|
-
supportsColor: getSupportLevel,
|
|
312
|
-
stdout: getSupportLevel(process.stdout),
|
|
313
|
-
stderr: getSupportLevel(process.stderr)
|
|
314
|
-
};
|
|
315
|
-
}
|
|
316
|
-
});
|
|
317
|
-
|
|
318
208
|
// internal/plugin-vue3/node_modules/@vitejs/plugin-vue/dist/index.cjs
|
|
319
209
|
var require_dist = __commonJS({
|
|
320
210
|
"internal/plugin-vue3/node_modules/@vitejs/plugin-vue/dist/index.cjs"(exports, module) {
|
|
@@ -324,7 +214,7 @@ var require_dist = __commonJS({
|
|
|
324
214
|
var vite = __require("vite");
|
|
325
215
|
var vue = __require("vue");
|
|
326
216
|
var node_module = __require("node:module");
|
|
327
|
-
var
|
|
217
|
+
var path4 = __require("node:path");
|
|
328
218
|
var node_crypto = __require("node:crypto");
|
|
329
219
|
var require$$0 = __require("tty");
|
|
330
220
|
var require$$1 = __require("util");
|
|
@@ -333,7 +223,7 @@ var require_dist = __commonJS({
|
|
|
333
223
|
return e && typeof e === "object" && "default" in e ? e.default : e;
|
|
334
224
|
}
|
|
335
225
|
var fs__default = /* @__PURE__ */ _interopDefaultCompat(fs4);
|
|
336
|
-
var path__default = /* @__PURE__ */ _interopDefaultCompat(
|
|
226
|
+
var path__default = /* @__PURE__ */ _interopDefaultCompat(path4);
|
|
337
227
|
var require$$0__default = /* @__PURE__ */ _interopDefaultCompat(require$$0);
|
|
338
228
|
var require$$1__default = /* @__PURE__ */ _interopDefaultCompat(require$$1);
|
|
339
229
|
var version2 = "4.6.2";
|
|
@@ -383,12 +273,12 @@ var require_dist = __commonJS({
|
|
|
383
273
|
query
|
|
384
274
|
};
|
|
385
275
|
}
|
|
386
|
-
function slash(
|
|
387
|
-
const isExtendedLengthPath =
|
|
276
|
+
function slash(path5) {
|
|
277
|
+
const isExtendedLengthPath = path5.startsWith("\\\\?\\");
|
|
388
278
|
if (isExtendedLengthPath) {
|
|
389
|
-
return
|
|
279
|
+
return path5;
|
|
390
280
|
}
|
|
391
|
-
return
|
|
281
|
+
return path5.replace(/\\/g, "/");
|
|
392
282
|
}
|
|
393
283
|
var cache = /* @__PURE__ */ new Map();
|
|
394
284
|
var hmrCache = /* @__PURE__ */ new Map();
|
|
@@ -882,16 +772,16 @@ import.meta.hot.accept(({ render }) => {
|
|
|
882
772
|
}
|
|
883
773
|
function parseFileUrl(input) {
|
|
884
774
|
const match2 = fileRegex.exec(input);
|
|
885
|
-
const
|
|
886
|
-
return makeUrl("file:", "", match2[1] || "", "", isAbsolutePath(
|
|
775
|
+
const path5 = match2[2];
|
|
776
|
+
return makeUrl("file:", "", match2[1] || "", "", isAbsolutePath(path5) ? path5 : "/" + path5, match2[3] || "", match2[4] || "");
|
|
887
777
|
}
|
|
888
|
-
function makeUrl(scheme, user, host, port,
|
|
778
|
+
function makeUrl(scheme, user, host, port, path5, query, hash) {
|
|
889
779
|
return {
|
|
890
780
|
scheme,
|
|
891
781
|
user,
|
|
892
782
|
host,
|
|
893
783
|
port,
|
|
894
|
-
path:
|
|
784
|
+
path: path5,
|
|
895
785
|
query,
|
|
896
786
|
hash,
|
|
897
787
|
type: UrlType.Absolute
|
|
@@ -921,11 +811,11 @@ import.meta.hot.accept(({ render }) => {
|
|
|
921
811
|
url.type = input ? input.startsWith("?") ? UrlType.Query : input.startsWith("#") ? UrlType.Hash : UrlType.RelativePath : UrlType.Empty;
|
|
922
812
|
return url;
|
|
923
813
|
}
|
|
924
|
-
function stripPathFilename(
|
|
925
|
-
if (
|
|
926
|
-
return
|
|
927
|
-
const index =
|
|
928
|
-
return
|
|
814
|
+
function stripPathFilename(path5) {
|
|
815
|
+
if (path5.endsWith("/.."))
|
|
816
|
+
return path5;
|
|
817
|
+
const index = path5.lastIndexOf("/");
|
|
818
|
+
return path5.slice(0, index + 1);
|
|
929
819
|
}
|
|
930
820
|
function mergePaths(url, base) {
|
|
931
821
|
normalizePath(base, base.type);
|
|
@@ -963,14 +853,14 @@ import.meta.hot.accept(({ render }) => {
|
|
|
963
853
|
pieces[pointer++] = piece;
|
|
964
854
|
positive++;
|
|
965
855
|
}
|
|
966
|
-
let
|
|
856
|
+
let path5 = "";
|
|
967
857
|
for (let i = 1; i < pointer; i++) {
|
|
968
|
-
|
|
858
|
+
path5 += "/" + pieces[i];
|
|
969
859
|
}
|
|
970
|
-
if (!
|
|
971
|
-
|
|
860
|
+
if (!path5 || addTrailingSlash && !path5.endsWith("/..")) {
|
|
861
|
+
path5 += "/";
|
|
972
862
|
}
|
|
973
|
-
url.path =
|
|
863
|
+
url.path = path5;
|
|
974
864
|
}
|
|
975
865
|
function resolve$1(input, base) {
|
|
976
866
|
if (!input && !base)
|
|
@@ -1011,13 +901,13 @@ import.meta.hot.accept(({ render }) => {
|
|
|
1011
901
|
case UrlType.Query:
|
|
1012
902
|
return queryHash;
|
|
1013
903
|
case UrlType.RelativePath: {
|
|
1014
|
-
const
|
|
1015
|
-
if (!
|
|
904
|
+
const path5 = url.path.slice(1);
|
|
905
|
+
if (!path5)
|
|
1016
906
|
return queryHash || ".";
|
|
1017
|
-
if (isRelative(base || input) && !isRelative(
|
|
1018
|
-
return "./" +
|
|
907
|
+
if (isRelative(base || input) && !isRelative(path5)) {
|
|
908
|
+
return "./" + path5 + queryHash;
|
|
1019
909
|
}
|
|
1020
|
-
return
|
|
910
|
+
return path5 + queryHash;
|
|
1021
911
|
}
|
|
1022
912
|
case UrlType.AbsolutePath:
|
|
1023
913
|
return url.path + queryHash;
|
|
@@ -1030,11 +920,11 @@ import.meta.hot.accept(({ render }) => {
|
|
|
1030
920
|
base += "/";
|
|
1031
921
|
return resolve$1(input, base);
|
|
1032
922
|
}
|
|
1033
|
-
function stripFilename(
|
|
1034
|
-
if (!
|
|
923
|
+
function stripFilename(path5) {
|
|
924
|
+
if (!path5)
|
|
1035
925
|
return "";
|
|
1036
|
-
const index =
|
|
1037
|
-
return
|
|
926
|
+
const index = path5.lastIndexOf("/");
|
|
927
|
+
return path5.slice(0, index + 1);
|
|
1038
928
|
}
|
|
1039
929
|
var COLUMN$1 = 0;
|
|
1040
930
|
function maybeSort(mappings, owned) {
|
|
@@ -1767,7 +1657,7 @@ import.meta.hot.accept(({ render }) => {
|
|
|
1767
1657
|
);
|
|
1768
1658
|
exports2.colors = [6, 2, 3, 4, 5, 1];
|
|
1769
1659
|
try {
|
|
1770
|
-
const supportsColor =
|
|
1660
|
+
const supportsColor = __require("supports-color");
|
|
1771
1661
|
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
1772
1662
|
exports2.colors = [
|
|
1773
1663
|
20,
|
|
@@ -2526,7 +2416,7 @@ import ${styleVar} from ${JSON.stringify(moduleRequest)}`,
|
|
|
2526
2416
|
cssDevSourcemap: false,
|
|
2527
2417
|
devToolsEnabled: process.env.NODE_ENV !== "production"
|
|
2528
2418
|
});
|
|
2529
|
-
const
|
|
2419
|
+
const filter3 = vue.computed(
|
|
2530
2420
|
() => vite.createFilter(options.value.include, options.value.exclude)
|
|
2531
2421
|
);
|
|
2532
2422
|
const customElementFilter = vue.computed(
|
|
@@ -2553,7 +2443,7 @@ import ${styleVar} from ${JSON.stringify(moduleRequest)}`,
|
|
|
2553
2443
|
if (typeDepToSFCMap.has(ctx.file)) {
|
|
2554
2444
|
return handleTypeDepChange(typeDepToSFCMap.get(ctx.file), ctx);
|
|
2555
2445
|
}
|
|
2556
|
-
if (
|
|
2446
|
+
if (filter3.value(ctx.file)) {
|
|
2557
2447
|
return handleHotUpdate(ctx, options.value);
|
|
2558
2448
|
}
|
|
2559
2449
|
},
|
|
@@ -2637,7 +2527,7 @@ import ${styleVar} from ${JSON.stringify(moduleRequest)}`,
|
|
|
2637
2527
|
if (query.raw || query.url) {
|
|
2638
2528
|
return;
|
|
2639
2529
|
}
|
|
2640
|
-
if (!
|
|
2530
|
+
if (!filter3.value(filename) && !query.vue) {
|
|
2641
2531
|
if (!query.vue && refTransformFilter.value(filename) && options.value.compiler.shouldTransformRef(code)) {
|
|
2642
2532
|
const result = options.value.compiler.transformRef(code, {
|
|
2643
2533
|
filename,
|
|
@@ -4757,6 +4647,60 @@ var import_picocolors = __toESM(require_picocolors());
|
|
|
4757
4647
|
var import_plugin_vue3 = __toESM(require_plugin_vue3());
|
|
4758
4648
|
import { vitePlugin as apimockPlugin } from "@forsakringskassan/apimock-express";
|
|
4759
4649
|
|
|
4650
|
+
// src/plugins/babel-plugin.ts
|
|
4651
|
+
import * as babel from "@babel/core";
|
|
4652
|
+
var filter = /\.(js|ts|vue)$/;
|
|
4653
|
+
function babelPlugin() {
|
|
4654
|
+
return {
|
|
4655
|
+
name: "fk:babel",
|
|
4656
|
+
enforce: "post",
|
|
4657
|
+
async transform(src, id) {
|
|
4658
|
+
const { pathname: filename } = new URL(id, "file://");
|
|
4659
|
+
if (!filter.test(filename)) {
|
|
4660
|
+
return null;
|
|
4661
|
+
}
|
|
4662
|
+
const transformed = await babel.transformAsync(src, {
|
|
4663
|
+
sourceMaps: true,
|
|
4664
|
+
comments: true,
|
|
4665
|
+
filename
|
|
4666
|
+
});
|
|
4667
|
+
if (!transformed) {
|
|
4668
|
+
return null;
|
|
4669
|
+
}
|
|
4670
|
+
const { code, map } = transformed;
|
|
4671
|
+
return {
|
|
4672
|
+
code: code ?? src,
|
|
4673
|
+
map: map ?? null
|
|
4674
|
+
};
|
|
4675
|
+
}
|
|
4676
|
+
};
|
|
4677
|
+
}
|
|
4678
|
+
|
|
4679
|
+
// src/plugins/custom-mapping-plugin.ts
|
|
4680
|
+
var folder = {
|
|
4681
|
+
es: "esm",
|
|
4682
|
+
cjs: "cjs"
|
|
4683
|
+
};
|
|
4684
|
+
function customMappingPlugin() {
|
|
4685
|
+
return {
|
|
4686
|
+
name: "fk:custom-mapping",
|
|
4687
|
+
renderStart(options) {
|
|
4688
|
+
const { format } = options;
|
|
4689
|
+
if (format !== "es" && format !== "cjs") {
|
|
4690
|
+
return;
|
|
4691
|
+
}
|
|
4692
|
+
const replacement = folder[format];
|
|
4693
|
+
options.dir = options.dir?.replace("[custom-format]", replacement);
|
|
4694
|
+
if (typeof options.entryFileNames === "string") {
|
|
4695
|
+
options.entryFileNames = options.entryFileNames.replace(
|
|
4696
|
+
"[custom-format]",
|
|
4697
|
+
replacement
|
|
4698
|
+
);
|
|
4699
|
+
}
|
|
4700
|
+
}
|
|
4701
|
+
};
|
|
4702
|
+
}
|
|
4703
|
+
|
|
4760
4704
|
// src/plugins/index-html-plugin.ts
|
|
4761
4705
|
import fs from "node:fs/promises";
|
|
4762
4706
|
import path from "node:path";
|
|
@@ -4828,15 +4772,10 @@ function indexHtmlPlugin() {
|
|
|
4828
4772
|
}
|
|
4829
4773
|
|
|
4830
4774
|
// src/plugins/package-json-plugin.ts
|
|
4831
|
-
import path2 from "node:path/posix";
|
|
4832
4775
|
var mapping = {
|
|
4833
4776
|
es: "module",
|
|
4834
4777
|
cjs: "commonjs"
|
|
4835
4778
|
};
|
|
4836
|
-
var folder = {
|
|
4837
|
-
es: "esm",
|
|
4838
|
-
cjs: "cjs"
|
|
4839
|
-
};
|
|
4840
4779
|
function packageJsonPlugin() {
|
|
4841
4780
|
return {
|
|
4842
4781
|
name: "fk:package-json",
|
|
@@ -4850,7 +4789,7 @@ function packageJsonPlugin() {
|
|
|
4850
4789
|
};
|
|
4851
4790
|
this.emitFile({
|
|
4852
4791
|
type: "asset",
|
|
4853
|
-
fileName:
|
|
4792
|
+
fileName: "package.json",
|
|
4854
4793
|
source: JSON.stringify(pkg, null, 2)
|
|
4855
4794
|
});
|
|
4856
4795
|
}
|
|
@@ -4858,32 +4797,24 @@ function packageJsonPlugin() {
|
|
|
4858
4797
|
}
|
|
4859
4798
|
|
|
4860
4799
|
// src/utils/detect-internal-dependencies.ts
|
|
4861
|
-
var exclude = ["/css-variables", "/design"];
|
|
4862
|
-
function isExcluded(name) {
|
|
4863
|
-
return exclude.some((suffix) => name.endsWith(suffix));
|
|
4864
|
-
}
|
|
4865
4800
|
function detectInternalDependencies(packages2, dependencies2) {
|
|
4866
4801
|
const internal = packages2.filter((pkg) => dependencies2.includes(pkg.name));
|
|
4867
|
-
const included = internal.filter((pkg) => !isExcluded(pkg.name));
|
|
4868
4802
|
const num = internal.length;
|
|
4869
|
-
const skipped = internal.length - included.length;
|
|
4870
4803
|
console.group("Detecting monorepo dependencies:");
|
|
4871
4804
|
if (num > 0) {
|
|
4872
4805
|
const ies = num === 1 ? "y" : "ies";
|
|
4873
|
-
console.log(
|
|
4874
|
-
|
|
4875
|
-
`
|
|
4876
|
-
);
|
|
4806
|
+
console.log(`${num} internal dependenc${ies} found.
|
|
4807
|
+
`);
|
|
4877
4808
|
} else {
|
|
4878
4809
|
console.log("No internal dependencies found");
|
|
4879
4810
|
}
|
|
4880
4811
|
console.groupEnd();
|
|
4881
|
-
return
|
|
4812
|
+
return internal;
|
|
4882
4813
|
}
|
|
4883
4814
|
|
|
4884
4815
|
// src/utils/detect-monorepo-packages.ts
|
|
4885
4816
|
import fs3 from "fs";
|
|
4886
|
-
import
|
|
4817
|
+
import path3 from "node:path";
|
|
4887
4818
|
|
|
4888
4819
|
// node_modules/glob/node_modules/minimatch/dist/esm/index.js
|
|
4889
4820
|
var import_brace_expansion = __toESM(require_brace_expansion(), 1);
|
|
@@ -5556,11 +5487,11 @@ var qmarksTestNoExtDot = ([$0]) => {
|
|
|
5556
5487
|
return (f) => f.length === len && f !== "." && f !== "..";
|
|
5557
5488
|
};
|
|
5558
5489
|
var defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
|
|
5559
|
-
var
|
|
5490
|
+
var path2 = {
|
|
5560
5491
|
win32: { sep: "\\" },
|
|
5561
5492
|
posix: { sep: "/" }
|
|
5562
5493
|
};
|
|
5563
|
-
var sep = defaultPlatform === "win32" ?
|
|
5494
|
+
var sep = defaultPlatform === "win32" ? path2.win32.sep : path2.posix.sep;
|
|
5564
5495
|
minimatch.sep = sep;
|
|
5565
5496
|
var GLOBSTAR = Symbol("globstar **");
|
|
5566
5497
|
minimatch.GLOBSTAR = GLOBSTAR;
|
|
@@ -5568,8 +5499,8 @@ var qmark2 = "[^/]";
|
|
|
5568
5499
|
var star2 = qmark2 + "*?";
|
|
5569
5500
|
var twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
|
|
5570
5501
|
var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?";
|
|
5571
|
-
var
|
|
5572
|
-
minimatch.filter =
|
|
5502
|
+
var filter2 = (pattern, options = {}) => (p) => minimatch(p, pattern, options);
|
|
5503
|
+
minimatch.filter = filter2;
|
|
5573
5504
|
var ext = (a, b = {}) => Object.assign({}, a, b);
|
|
5574
5505
|
var defaults = (def) => {
|
|
5575
5506
|
if (!def || typeof def !== "object" || !Object.keys(def).length) {
|
|
@@ -8642,12 +8573,12 @@ var PathBase = class {
|
|
|
8642
8573
|
/**
|
|
8643
8574
|
* Get the Path object referenced by the string path, resolved from this Path
|
|
8644
8575
|
*/
|
|
8645
|
-
resolve(
|
|
8646
|
-
if (!
|
|
8576
|
+
resolve(path4) {
|
|
8577
|
+
if (!path4) {
|
|
8647
8578
|
return this;
|
|
8648
8579
|
}
|
|
8649
|
-
const rootPath = this.getRootString(
|
|
8650
|
-
const dir =
|
|
8580
|
+
const rootPath = this.getRootString(path4);
|
|
8581
|
+
const dir = path4.substring(rootPath.length);
|
|
8651
8582
|
const dirParts = dir.split(this.splitSep);
|
|
8652
8583
|
const result = rootPath ? this.getRoot(rootPath).#resolveParts(dirParts) : this.#resolveParts(dirParts);
|
|
8653
8584
|
return result;
|
|
@@ -9399,8 +9330,8 @@ var PathWin32 = class _PathWin32 extends PathBase {
|
|
|
9399
9330
|
/**
|
|
9400
9331
|
* @internal
|
|
9401
9332
|
*/
|
|
9402
|
-
getRootString(
|
|
9403
|
-
return win32.parse(
|
|
9333
|
+
getRootString(path4) {
|
|
9334
|
+
return win32.parse(path4).root;
|
|
9404
9335
|
}
|
|
9405
9336
|
/**
|
|
9406
9337
|
* @internal
|
|
@@ -9446,8 +9377,8 @@ var PathPosix = class _PathPosix extends PathBase {
|
|
|
9446
9377
|
/**
|
|
9447
9378
|
* @internal
|
|
9448
9379
|
*/
|
|
9449
|
-
getRootString(
|
|
9450
|
-
return
|
|
9380
|
+
getRootString(path4) {
|
|
9381
|
+
return path4.startsWith("/") ? "/" : "";
|
|
9451
9382
|
}
|
|
9452
9383
|
/**
|
|
9453
9384
|
* @internal
|
|
@@ -9536,11 +9467,11 @@ var PathScurryBase = class {
|
|
|
9536
9467
|
/**
|
|
9537
9468
|
* Get the depth of a provided path, string, or the cwd
|
|
9538
9469
|
*/
|
|
9539
|
-
depth(
|
|
9540
|
-
if (typeof
|
|
9541
|
-
|
|
9470
|
+
depth(path4 = this.cwd) {
|
|
9471
|
+
if (typeof path4 === "string") {
|
|
9472
|
+
path4 = this.cwd.resolve(path4);
|
|
9542
9473
|
}
|
|
9543
|
-
return
|
|
9474
|
+
return path4.depth();
|
|
9544
9475
|
}
|
|
9545
9476
|
/**
|
|
9546
9477
|
* Return the cache of child entries. Exposed so subclasses can create
|
|
@@ -9766,9 +9697,9 @@ var PathScurryBase = class {
|
|
|
9766
9697
|
opts = entry;
|
|
9767
9698
|
entry = this.cwd;
|
|
9768
9699
|
}
|
|
9769
|
-
const { withFileTypes = true, follow = false, filter:
|
|
9700
|
+
const { withFileTypes = true, follow = false, filter: filter3, walkFilter } = opts;
|
|
9770
9701
|
const results = [];
|
|
9771
|
-
if (!
|
|
9702
|
+
if (!filter3 || filter3(entry)) {
|
|
9772
9703
|
results.push(withFileTypes ? entry : entry.fullpath());
|
|
9773
9704
|
}
|
|
9774
9705
|
const dirs = /* @__PURE__ */ new Set();
|
|
@@ -9787,7 +9718,7 @@ var PathScurryBase = class {
|
|
|
9787
9718
|
}
|
|
9788
9719
|
};
|
|
9789
9720
|
for (const e of entries) {
|
|
9790
|
-
if (!
|
|
9721
|
+
if (!filter3 || filter3(e)) {
|
|
9791
9722
|
results.push(withFileTypes ? e : e.fullpath());
|
|
9792
9723
|
}
|
|
9793
9724
|
if (follow && e.isSymbolicLink()) {
|
|
@@ -9818,16 +9749,16 @@ var PathScurryBase = class {
|
|
|
9818
9749
|
opts = entry;
|
|
9819
9750
|
entry = this.cwd;
|
|
9820
9751
|
}
|
|
9821
|
-
const { withFileTypes = true, follow = false, filter:
|
|
9752
|
+
const { withFileTypes = true, follow = false, filter: filter3, walkFilter } = opts;
|
|
9822
9753
|
const results = [];
|
|
9823
|
-
if (!
|
|
9754
|
+
if (!filter3 || filter3(entry)) {
|
|
9824
9755
|
results.push(withFileTypes ? entry : entry.fullpath());
|
|
9825
9756
|
}
|
|
9826
9757
|
const dirs = /* @__PURE__ */ new Set([entry]);
|
|
9827
9758
|
for (const dir of dirs) {
|
|
9828
9759
|
const entries = dir.readdirSync();
|
|
9829
9760
|
for (const e of entries) {
|
|
9830
|
-
if (!
|
|
9761
|
+
if (!filter3 || filter3(e)) {
|
|
9831
9762
|
results.push(withFileTypes ? e : e.fullpath());
|
|
9832
9763
|
}
|
|
9833
9764
|
let r = e;
|
|
@@ -9880,15 +9811,15 @@ var PathScurryBase = class {
|
|
|
9880
9811
|
opts = entry;
|
|
9881
9812
|
entry = this.cwd;
|
|
9882
9813
|
}
|
|
9883
|
-
const { withFileTypes = true, follow = false, filter:
|
|
9884
|
-
if (!
|
|
9814
|
+
const { withFileTypes = true, follow = false, filter: filter3, walkFilter } = opts;
|
|
9815
|
+
if (!filter3 || filter3(entry)) {
|
|
9885
9816
|
yield withFileTypes ? entry : entry.fullpath();
|
|
9886
9817
|
}
|
|
9887
9818
|
const dirs = /* @__PURE__ */ new Set([entry]);
|
|
9888
9819
|
for (const dir of dirs) {
|
|
9889
9820
|
const entries = dir.readdirSync();
|
|
9890
9821
|
for (const e of entries) {
|
|
9891
|
-
if (!
|
|
9822
|
+
if (!filter3 || filter3(e)) {
|
|
9892
9823
|
yield withFileTypes ? e : e.fullpath();
|
|
9893
9824
|
}
|
|
9894
9825
|
let r = e;
|
|
@@ -9911,9 +9842,9 @@ var PathScurryBase = class {
|
|
|
9911
9842
|
opts = entry;
|
|
9912
9843
|
entry = this.cwd;
|
|
9913
9844
|
}
|
|
9914
|
-
const { withFileTypes = true, follow = false, filter:
|
|
9845
|
+
const { withFileTypes = true, follow = false, filter: filter3, walkFilter } = opts;
|
|
9915
9846
|
const results = new Minipass({ objectMode: true });
|
|
9916
|
-
if (!
|
|
9847
|
+
if (!filter3 || filter3(entry)) {
|
|
9917
9848
|
results.write(withFileTypes ? entry : entry.fullpath());
|
|
9918
9849
|
}
|
|
9919
9850
|
const dirs = /* @__PURE__ */ new Set();
|
|
@@ -9946,7 +9877,7 @@ var PathScurryBase = class {
|
|
|
9946
9877
|
}
|
|
9947
9878
|
}
|
|
9948
9879
|
for (const e of entries) {
|
|
9949
|
-
if (e && (!
|
|
9880
|
+
if (e && (!filter3 || filter3(e))) {
|
|
9950
9881
|
if (!results.write(withFileTypes ? e : e.fullpath())) {
|
|
9951
9882
|
paused = true;
|
|
9952
9883
|
}
|
|
@@ -9980,10 +9911,10 @@ var PathScurryBase = class {
|
|
|
9980
9911
|
opts = entry;
|
|
9981
9912
|
entry = this.cwd;
|
|
9982
9913
|
}
|
|
9983
|
-
const { withFileTypes = true, follow = false, filter:
|
|
9914
|
+
const { withFileTypes = true, follow = false, filter: filter3, walkFilter } = opts;
|
|
9984
9915
|
const results = new Minipass({ objectMode: true });
|
|
9985
9916
|
const dirs = /* @__PURE__ */ new Set();
|
|
9986
|
-
if (!
|
|
9917
|
+
if (!filter3 || filter3(entry)) {
|
|
9987
9918
|
results.write(withFileTypes ? entry : entry.fullpath());
|
|
9988
9919
|
}
|
|
9989
9920
|
const queue = [entry];
|
|
@@ -10001,7 +9932,7 @@ var PathScurryBase = class {
|
|
|
10001
9932
|
dirs.add(dir);
|
|
10002
9933
|
const entries = dir.readdirSync();
|
|
10003
9934
|
for (const e of entries) {
|
|
10004
|
-
if (!
|
|
9935
|
+
if (!filter3 || filter3(e)) {
|
|
10005
9936
|
if (!results.write(withFileTypes ? e : e.fullpath())) {
|
|
10006
9937
|
paused = true;
|
|
10007
9938
|
}
|
|
@@ -10027,9 +9958,9 @@ var PathScurryBase = class {
|
|
|
10027
9958
|
process2();
|
|
10028
9959
|
return results;
|
|
10029
9960
|
}
|
|
10030
|
-
chdir(
|
|
9961
|
+
chdir(path4 = this.cwd) {
|
|
10031
9962
|
const oldCwd = this.cwd;
|
|
10032
|
-
this.cwd = typeof
|
|
9963
|
+
this.cwd = typeof path4 === "string" ? this.cwd.resolve(path4) : path4;
|
|
10033
9964
|
this.cwd[setAsCwd](oldCwd);
|
|
10034
9965
|
}
|
|
10035
9966
|
};
|
|
@@ -10385,8 +10316,8 @@ var MatchRecord = class {
|
|
|
10385
10316
|
}
|
|
10386
10317
|
// match, absolute, ifdir
|
|
10387
10318
|
entries() {
|
|
10388
|
-
return [...this.store.entries()].map(([
|
|
10389
|
-
|
|
10319
|
+
return [...this.store.entries()].map(([path4, n]) => [
|
|
10320
|
+
path4,
|
|
10390
10321
|
!!(n & 2),
|
|
10391
10322
|
!!(n & 1)
|
|
10392
10323
|
]);
|
|
@@ -10591,9 +10522,9 @@ var GlobUtil = class {
|
|
|
10591
10522
|
signal;
|
|
10592
10523
|
maxDepth;
|
|
10593
10524
|
includeChildMatches;
|
|
10594
|
-
constructor(patterns,
|
|
10525
|
+
constructor(patterns, path4, opts) {
|
|
10595
10526
|
this.patterns = patterns;
|
|
10596
|
-
this.path =
|
|
10527
|
+
this.path = path4;
|
|
10597
10528
|
this.opts = opts;
|
|
10598
10529
|
this.#sep = !opts.posix && opts.platform === "win32" ? "\\" : "/";
|
|
10599
10530
|
this.includeChildMatches = opts.includeChildMatches !== false;
|
|
@@ -10612,11 +10543,11 @@ var GlobUtil = class {
|
|
|
10612
10543
|
});
|
|
10613
10544
|
}
|
|
10614
10545
|
}
|
|
10615
|
-
#ignored(
|
|
10616
|
-
return this.seen.has(
|
|
10546
|
+
#ignored(path4) {
|
|
10547
|
+
return this.seen.has(path4) || !!this.#ignore?.ignored?.(path4);
|
|
10617
10548
|
}
|
|
10618
|
-
#childrenIgnored(
|
|
10619
|
-
return !!this.#ignore?.childrenIgnored?.(
|
|
10549
|
+
#childrenIgnored(path4) {
|
|
10550
|
+
return !!this.#ignore?.childrenIgnored?.(path4);
|
|
10620
10551
|
}
|
|
10621
10552
|
// backpressure mechanism
|
|
10622
10553
|
pause() {
|
|
@@ -10831,8 +10762,8 @@ var GlobUtil = class {
|
|
|
10831
10762
|
};
|
|
10832
10763
|
var GlobWalker = class extends GlobUtil {
|
|
10833
10764
|
matches = /* @__PURE__ */ new Set();
|
|
10834
|
-
constructor(patterns,
|
|
10835
|
-
super(patterns,
|
|
10765
|
+
constructor(patterns, path4, opts) {
|
|
10766
|
+
super(patterns, path4, opts);
|
|
10836
10767
|
}
|
|
10837
10768
|
matchEmit(e) {
|
|
10838
10769
|
this.matches.add(e);
|
|
@@ -10869,8 +10800,8 @@ var GlobWalker = class extends GlobUtil {
|
|
|
10869
10800
|
};
|
|
10870
10801
|
var GlobStream = class extends GlobUtil {
|
|
10871
10802
|
results;
|
|
10872
|
-
constructor(patterns,
|
|
10873
|
-
super(patterns,
|
|
10803
|
+
constructor(patterns, path4, opts) {
|
|
10804
|
+
super(patterns, path4, opts);
|
|
10874
10805
|
this.results = new Minipass({
|
|
10875
10806
|
signal: this.signal,
|
|
10876
10807
|
objectMode: true
|
|
@@ -11175,7 +11106,7 @@ function detectMonorepoPackages(...pkgPaths) {
|
|
|
11175
11106
|
if (!fs3.existsSync(pkgPath)) {
|
|
11176
11107
|
continue;
|
|
11177
11108
|
}
|
|
11178
|
-
const rootDir =
|
|
11109
|
+
const rootDir = path3.dirname(pkgPath);
|
|
11179
11110
|
const { workspaces } = readJsonFile(pkgPath);
|
|
11180
11111
|
if (!workspaces) {
|
|
11181
11112
|
continue;
|
|
@@ -11184,7 +11115,7 @@ function detectMonorepoPackages(...pkgPaths) {
|
|
|
11184
11115
|
return {
|
|
11185
11116
|
name: readJsonFile(filename).name,
|
|
11186
11117
|
pkgPath: filename,
|
|
11187
|
-
srcPath:
|
|
11118
|
+
srcPath: path3.resolve(path3.dirname(filename), "src")
|
|
11188
11119
|
};
|
|
11189
11120
|
});
|
|
11190
11121
|
}
|
|
@@ -11350,8 +11281,12 @@ var vueMajor = detectVueMajor();
|
|
|
11350
11281
|
var packageJson = readJsonFile("package.json");
|
|
11351
11282
|
var dependencies = Object.keys(packageJson.dependencies ?? {});
|
|
11352
11283
|
var peerDependencies = Object.keys(packageJson.peerDependencies ?? {});
|
|
11284
|
+
var externalDependencies = packageJson.externalDependencies;
|
|
11353
11285
|
var allDependencies = [...dependencies, ...peerDependencies].sort();
|
|
11354
|
-
var external = /* @__PURE__ */ new Set([
|
|
11286
|
+
var external = /* @__PURE__ */ new Set([
|
|
11287
|
+
...externalDependencies ?? dependencies,
|
|
11288
|
+
...peerDependencies
|
|
11289
|
+
]);
|
|
11355
11290
|
console.log(
|
|
11356
11291
|
"Building",
|
|
11357
11292
|
import_picocolors.default.cyan(packageJson.name),
|
|
@@ -11363,17 +11298,16 @@ var internalDependencies = detectInternalDependencies(
|
|
|
11363
11298
|
packages,
|
|
11364
11299
|
allDependencies
|
|
11365
11300
|
);
|
|
11366
|
-
var defaultPlugins = [
|
|
11301
|
+
var defaultPlugins = [
|
|
11302
|
+
indexHtmlPlugin(),
|
|
11303
|
+
packageJsonPlugin(),
|
|
11304
|
+
vuePlugin(),
|
|
11305
|
+
customMappingPlugin(),
|
|
11306
|
+
babelPlugin()
|
|
11307
|
+
];
|
|
11367
11308
|
var defaultConfig = {
|
|
11368
11309
|
fk: {},
|
|
11369
11310
|
plugins: defaultPlugins,
|
|
11370
|
-
resolve: {
|
|
11371
|
-
alias: Object.fromEntries(
|
|
11372
|
-
internalDependencies.map((it) => {
|
|
11373
|
-
return [it.name, it.srcPath];
|
|
11374
|
-
})
|
|
11375
|
-
)
|
|
11376
|
-
},
|
|
11377
11311
|
optimizeDeps: {
|
|
11378
11312
|
/**
|
|
11379
11313
|
* Vite treats monorepo packages as sourcecode and performs no prebundling by default.
|
|
@@ -11386,22 +11320,16 @@ var defaultConfig = {
|
|
|
11386
11320
|
emptyOutDir: false,
|
|
11387
11321
|
minify: false,
|
|
11388
11322
|
sourcemap: true,
|
|
11389
|
-
outDir: "",
|
|
11323
|
+
outDir: "dist/[custom-format]",
|
|
11390
11324
|
lib: {
|
|
11391
11325
|
entry: "src/index.ts",
|
|
11392
11326
|
formats: ["es", "cjs"]
|
|
11393
11327
|
},
|
|
11394
11328
|
rollupOptions: {
|
|
11395
11329
|
output: {
|
|
11396
|
-
entryFileNames: `
|
|
11330
|
+
entryFileNames: `index.[custom-format].js`,
|
|
11397
11331
|
globals: {
|
|
11398
11332
|
vue: "Vue"
|
|
11399
|
-
},
|
|
11400
|
-
assetFileNames(assetInfo) {
|
|
11401
|
-
if (assetInfo.name === "style.css") {
|
|
11402
|
-
return "dist/style.css";
|
|
11403
|
-
}
|
|
11404
|
-
return assetInfo.name ?? "";
|
|
11405
11333
|
}
|
|
11406
11334
|
},
|
|
11407
11335
|
external: Array.from(external)
|