@forsakringskassan/vite-lib-config 5.13.0 → 5.13.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.
- package/dist/fallback.mjs +15 -9
- package/dist/vite.config.cjs +2 -1
- package/dist/vite.config.mjs +2 -1
- package/package.json +1 -1
package/dist/fallback.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`header[data-v-
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`header[data-v-0d47d741]{color:#fff;background-color:#116a3e;padding:1rem}h1[data-v-0d47d741]{margin:0;font-size:1.5rem}/*$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
4
|
//#region src/fallback/FallbackHome.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -8,9 +8,12 @@ var _ = { key: 0 }, v = { key: 1 }, y = /*#__PURE__*/ ((e, t) => {
|
|
|
8
8
|
return n;
|
|
9
9
|
})(/* @__PURE__ */ o({
|
|
10
10
|
__name: "FallbackHome",
|
|
11
|
-
props: {
|
|
11
|
+
props: {
|
|
12
|
+
name: {},
|
|
13
|
+
examples: {}
|
|
14
|
+
},
|
|
12
15
|
setup(t) {
|
|
13
|
-
return (o, s) => (c(), n("div", null, [
|
|
16
|
+
return (o, s) => (c(), n("div", null, [r("header", null, [r("h1", null, u(t.name), 1)]), t.examples.length === 0 ? (c(), n("p", _, [...s[0] ||= [
|
|
14
17
|
i("Create a new vue example at ", -1),
|
|
15
18
|
r("b", null, "./src/examples/**", -1),
|
|
16
19
|
i(" to get started.", -1)
|
|
@@ -24,7 +27,7 @@ var _ = { key: 0 }, v = { key: 1 }, y = /*#__PURE__*/ ((e, t) => {
|
|
|
24
27
|
r("pre", null, "$ npm start -- " + u(t.examples[0]), 1)
|
|
25
28
|
]))]));
|
|
26
29
|
}
|
|
27
|
-
}), [["__scopeId", "data-v-
|
|
30
|
+
}), [["__scopeId", "data-v-0d47d741"]]), b = /* @__PURE__ */ o({
|
|
28
31
|
__name: "NotFound",
|
|
29
32
|
setup(e) {
|
|
30
33
|
return (e, t) => (c(), n("div", null, [
|
|
@@ -39,28 +42,31 @@ var _ = { key: 0 }, v = { key: 1 }, y = /*#__PURE__*/ ((e, t) => {
|
|
|
39
42
|
}), x = /* @__PURE__ */ o({
|
|
40
43
|
__name: "App",
|
|
41
44
|
setup(e) {
|
|
42
|
-
let n = __AVAILABLE_EXAMPLES__, r = n.map((e) => ({
|
|
45
|
+
let n = __AVAILABLE_EXAMPLES__, r = __PACKAGE_NAME__, i = n.map((e) => ({
|
|
43
46
|
path: `/${e}`,
|
|
44
47
|
component: () => import(
|
|
45
48
|
/* @vite-ignore */
|
|
46
49
|
`/${e}`
|
|
47
50
|
)
|
|
48
|
-
})),
|
|
51
|
+
})), a = h({
|
|
49
52
|
history: g(),
|
|
50
53
|
routes: [
|
|
51
54
|
{
|
|
52
55
|
path: "/",
|
|
53
56
|
component: y,
|
|
54
|
-
props: {
|
|
57
|
+
props: {
|
|
58
|
+
examples: n,
|
|
59
|
+
name: r
|
|
60
|
+
}
|
|
55
61
|
},
|
|
56
|
-
...
|
|
62
|
+
...i,
|
|
57
63
|
{
|
|
58
64
|
path: "/:pathMatch(.*)*",
|
|
59
65
|
component: b
|
|
60
66
|
}
|
|
61
67
|
]
|
|
62
68
|
});
|
|
63
|
-
return s().appContext.app.use(
|
|
69
|
+
return s().appContext.app.use(a), (e, n) => (c(), t(d(m)));
|
|
64
70
|
}
|
|
65
71
|
});
|
|
66
72
|
//#endregion
|
package/dist/vite.config.cjs
CHANGED
|
@@ -11454,7 +11454,8 @@ async function fkDefineConfig(mode, config = {}) {
|
|
|
11454
11454
|
}
|
|
11455
11455
|
result.define = {
|
|
11456
11456
|
...result.define,
|
|
11457
|
-
__AVAILABLE_EXAMPLES__: JSON.stringify(await getExamples())
|
|
11457
|
+
__AVAILABLE_EXAMPLES__: JSON.stringify(await getExamples()),
|
|
11458
|
+
__PACKAGE_NAME__: JSON.stringify(packageJson.name)
|
|
11458
11459
|
};
|
|
11459
11460
|
const { build } = result;
|
|
11460
11461
|
const external2 = build?.rolldownOptions?.external ?? /* eslint-disable-next-line @typescript-eslint/no-deprecated -- for backwards compatibility */
|
package/dist/vite.config.mjs
CHANGED
|
@@ -11448,7 +11448,8 @@ async function fkDefineConfig(mode, config = {}) {
|
|
|
11448
11448
|
}
|
|
11449
11449
|
result.define = {
|
|
11450
11450
|
...result.define,
|
|
11451
|
-
__AVAILABLE_EXAMPLES__: JSON.stringify(await getExamples())
|
|
11451
|
+
__AVAILABLE_EXAMPLES__: JSON.stringify(await getExamples()),
|
|
11452
|
+
__PACKAGE_NAME__: JSON.stringify(packageJson.name)
|
|
11452
11453
|
};
|
|
11453
11454
|
const { build } = result;
|
|
11454
11455
|
const external2 = build?.rolldownOptions?.external ?? /* eslint-disable-next-line @typescript-eslint/no-deprecated -- for backwards compatibility */
|