@forsakringskassan/vite-lib-config 5.13.4 → 5.13.6
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/dist/fallback.mjs +11 -12
- package/dist/vite.config.cjs +15 -12
- package/dist/vite.config.mjs +15 -12
- package/package.json +1 -1
package/dist/fallback.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.fallback[data-v-090dc392]{font-family:system-ui,Arial,sans-serif;font-weight:400}header[data-v-090dc392]{color:#fff;background-color:#116a3e;padding:1rem}a[data-v-090dc392]{color:#2358af;text-decoration:none}a[data-v-090dc392]:hover{color:#1b478d;text-decoration:underline}h1[data-v-090dc392]{margin:0;font-size:1.5rem}.fallback-content[data-v-090dc392]{padding:1rem}html,body{margin:0;padding:0}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
|
|
2
2
|
import { Fragment as e, createBlock as t, createElementBlock as n, createElementVNode as r, createTextVNode as i, createVNode as a, defineComponent as o, getCurrentInstance as s, openBlock as c, renderList as l, toDisplayString as u, unref as d, withCtx as f } from "vue";
|
|
3
3
|
import { RouterLink as p, RouterView as m, createRouter as h, createWebHashHistory as g } from "vue-router";
|
|
4
|
-
|
|
5
|
-
var _ = { key: 0 },
|
|
4
|
+
// src/fallback/FallbackHome.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var _ = { class: "fallback" }, v = { class: "fallback-content" }, y = { key: 0 }, b = { key: 1 }, x = /*#__PURE__*/ ((e, t) => {
|
|
6
6
|
let n = e.__vccOpts || e;
|
|
7
7
|
for (let [e, r] of t) n[e] = r;
|
|
8
8
|
return n;
|
|
@@ -13,11 +13,11 @@ var _ = { key: 0 }, v = { key: 1 }, y = /*#__PURE__*/ ((e, t) => {
|
|
|
13
13
|
examples: {}
|
|
14
14
|
},
|
|
15
15
|
setup(t) {
|
|
16
|
-
return (o, s) => (c(), n("div",
|
|
16
|
+
return (o, s) => (c(), n("div", _, [r("header", null, [r("h1", null, "Start - " + u(t.name), 1)]), r("div", v, [t.examples.length === 0 ? (c(), n("p", y, [...s[0] ||= [
|
|
17
17
|
i("Create a new vue example at ", -1),
|
|
18
18
|
r("b", null, "./src/examples/**", -1),
|
|
19
19
|
i(" to get started.", -1)
|
|
20
|
-
]])) : (c(), n("div",
|
|
20
|
+
]])) : (c(), n("div", b, [
|
|
21
21
|
s[1] ||= r("p", null, "Start one of the following examples directly:", -1),
|
|
22
22
|
r("ul", null, [(c(!0), n(e, null, l(t.examples, (e) => (c(), n("li", { key: e }, [a(d(p), { to: `/${e}` }, {
|
|
23
23
|
default: f(() => [i(u(e), 1)]),
|
|
@@ -25,9 +25,9 @@ var _ = { key: 0 }, v = { key: 1 }, y = /*#__PURE__*/ ((e, t) => {
|
|
|
25
25
|
}, 1032, ["to"])]))), 128))]),
|
|
26
26
|
s[2] ||= r("p", null, "Or from your terminal, type:", -1),
|
|
27
27
|
r("pre", null, "$ npm start -- " + u(t.examples[0]), 1)
|
|
28
|
-
]))]));
|
|
28
|
+
]))])]));
|
|
29
29
|
}
|
|
30
|
-
}), [["__scopeId", "data-v-
|
|
30
|
+
}), [["__scopeId", "data-v-090dc392"]]), S = /* @__PURE__ */ o({
|
|
31
31
|
__name: "NotFound",
|
|
32
32
|
setup(e) {
|
|
33
33
|
return (e, t) => (c(), n("div", null, [
|
|
@@ -39,7 +39,7 @@ var _ = { key: 0 }, v = { key: 1 }, y = /*#__PURE__*/ ((e, t) => {
|
|
|
39
39
|
})
|
|
40
40
|
]));
|
|
41
41
|
}
|
|
42
|
-
}),
|
|
42
|
+
}), C = /* @__PURE__ */ o({
|
|
43
43
|
__name: "App",
|
|
44
44
|
setup(e) {
|
|
45
45
|
let n = __AVAILABLE_EXAMPLES__, r = __PACKAGE_NAME__, i = n.map((e) => ({
|
|
@@ -53,7 +53,7 @@ var _ = { key: 0 }, v = { key: 1 }, y = /*#__PURE__*/ ((e, t) => {
|
|
|
53
53
|
routes: [
|
|
54
54
|
{
|
|
55
55
|
path: "/",
|
|
56
|
-
component:
|
|
56
|
+
component: x,
|
|
57
57
|
props: {
|
|
58
58
|
examples: n,
|
|
59
59
|
name: r
|
|
@@ -62,12 +62,11 @@ var _ = { key: 0 }, v = { key: 1 }, y = /*#__PURE__*/ ((e, t) => {
|
|
|
62
62
|
...i,
|
|
63
63
|
{
|
|
64
64
|
path: "/:pathMatch(.*)*",
|
|
65
|
-
component:
|
|
65
|
+
component: S
|
|
66
66
|
}
|
|
67
67
|
]
|
|
68
68
|
});
|
|
69
69
|
return s().appContext.app.use(a), (e, n) => (c(), t(d(m)));
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
|
-
|
|
73
|
-
export { x as default };
|
|
72
|
+
export { C as default };
|
package/dist/vite.config.cjs
CHANGED
|
@@ -11346,15 +11346,20 @@ var defaultPlugins = [
|
|
|
11346
11346
|
customMappingPlugin(),
|
|
11347
11347
|
babelPlugin()
|
|
11348
11348
|
];
|
|
11349
|
-
var
|
|
11350
|
-
if (process.env.CYPRESS) {
|
|
11351
|
-
|
|
11352
|
-
|
|
11353
|
-
|
|
11354
|
-
|
|
11355
|
-
|
|
11356
|
-
|
|
11357
|
-
|
|
11349
|
+
var optimizeDeps = (() => {
|
|
11350
|
+
if (process.env.CYPRESS) {
|
|
11351
|
+
return {
|
|
11352
|
+
entries: [
|
|
11353
|
+
"cypress/**/*.{ts,vue}",
|
|
11354
|
+
"packages/**/src/**/*.{ts,vue}",
|
|
11355
|
+
"src/**/*.{ts,vue}",
|
|
11356
|
+
"!**/*.spec.ts"
|
|
11357
|
+
],
|
|
11358
|
+
include: ["@forsakringskassan/vite-lib-config/vue-fallback"]
|
|
11359
|
+
};
|
|
11360
|
+
}
|
|
11361
|
+
return {};
|
|
11362
|
+
})();
|
|
11358
11363
|
var defaultConfig = {
|
|
11359
11364
|
fk: {},
|
|
11360
11365
|
plugins: defaultPlugins,
|
|
@@ -11380,9 +11385,7 @@ var defaultConfig = {
|
|
|
11380
11385
|
external: Array.from(external)
|
|
11381
11386
|
}
|
|
11382
11387
|
},
|
|
11383
|
-
optimizeDeps
|
|
11384
|
-
entries
|
|
11385
|
-
},
|
|
11388
|
+
optimizeDeps,
|
|
11386
11389
|
resolve: {
|
|
11387
11390
|
alias: {
|
|
11388
11391
|
/* enable vue runtime template compiler needed by both jest/vitest
|
package/dist/vite.config.mjs
CHANGED
|
@@ -11340,15 +11340,20 @@ var defaultPlugins = [
|
|
|
11340
11340
|
customMappingPlugin(),
|
|
11341
11341
|
babelPlugin()
|
|
11342
11342
|
];
|
|
11343
|
-
var
|
|
11344
|
-
if (process.env.CYPRESS) {
|
|
11345
|
-
|
|
11346
|
-
|
|
11347
|
-
|
|
11348
|
-
|
|
11349
|
-
|
|
11350
|
-
|
|
11351
|
-
|
|
11343
|
+
var optimizeDeps = (() => {
|
|
11344
|
+
if (process.env.CYPRESS) {
|
|
11345
|
+
return {
|
|
11346
|
+
entries: [
|
|
11347
|
+
"cypress/**/*.{ts,vue}",
|
|
11348
|
+
"packages/**/src/**/*.{ts,vue}",
|
|
11349
|
+
"src/**/*.{ts,vue}",
|
|
11350
|
+
"!**/*.spec.ts"
|
|
11351
|
+
],
|
|
11352
|
+
include: ["@forsakringskassan/vite-lib-config/vue-fallback"]
|
|
11353
|
+
};
|
|
11354
|
+
}
|
|
11355
|
+
return {};
|
|
11356
|
+
})();
|
|
11352
11357
|
var defaultConfig = {
|
|
11353
11358
|
fk: {},
|
|
11354
11359
|
plugins: defaultPlugins,
|
|
@@ -11374,9 +11379,7 @@ var defaultConfig = {
|
|
|
11374
11379
|
external: Array.from(external)
|
|
11375
11380
|
}
|
|
11376
11381
|
},
|
|
11377
|
-
optimizeDeps
|
|
11378
|
-
entries
|
|
11379
|
-
},
|
|
11382
|
+
optimizeDeps,
|
|
11380
11383
|
resolve: {
|
|
11381
11384
|
alias: {
|
|
11382
11385
|
/* enable vue runtime template compiler needed by both jest/vitest
|