Integrate svelte-preprocess into Svelte configuration and update metadata for improved build process. Remove unused Lottie player and related dependencies to streamline project structure.

This commit is contained in:
becarta
2025-05-16 01:19:16 +02:00
parent 82cd940b62
commit a036c95dbc
32 changed files with 44 additions and 7563 deletions

View File

@@ -1 +1 @@
{"compilerOptions":{"css":"injected","dev":true,"hmr":true,"enableSourcemap":true},"configFile":"/Users/richard/Website Development/tiber365/svelte.config.js","extensions":[".svelte"]}
{"compilerOptions":{"css":"external","dev":true,"enableSourcemap":true},"configFile":"/Users/richard/Website Development/tiber365/svelte.config.js","extensions":[".svelte"],"preprocess":{"markup":"async ({ content, filename }) => {\n if (transformers.replace) {\n const transformed = await (0, exports.transform)('replace', transformers.replace, {\n content,\n markup: content,\n filename,\n });\n content = transformed.code;\n }\n return (0, markup_1.transformMarkup)({ content, filename }, markupTransformer, {\n // we only pass the markupTagName because the rest of options\n // is fetched internally by the `markupTransformer`\n markupTagName,\n });\n }","script":"async ({ content, attributes, markup: fullMarkup, filename, }) => {\n const transformResult = await scriptTransformer({\n content,\n attributes,\n markup: fullMarkup,\n filename,\n });\n let { code, map, dependencies, diagnostics } = transformResult;\n if (transformers.babel) {\n const transformed = await (0, exports.transform)('babel', getTransformerOptions('babel'), { content: code, markup: fullMarkup, map, filename, attributes });\n code = transformed.code;\n map = transformed.map;\n dependencies = (0, utils_1.concat)(dependencies, transformed.dependencies);\n diagnostics = (0, utils_1.concat)(diagnostics, transformed.diagnostics);\n }\n return { code, map, dependencies, diagnostics };\n }","style":"async ({ content, attributes, markup: fullMarkup, filename, }) => {\n const transformResult = await cssTransformer({\n content,\n attributes,\n markup: fullMarkup,\n filename,\n });\n let { code, map, dependencies } = transformResult;\n const hasPostcss = await (0, utils_1.hasDepInstalled)('postcss');\n // istanbul ignore else\n if (hasPostcss) {\n if (transformers.postcss) {\n const { alias, lang } = (0, language_1.getLanguage)(attributes);\n const postcssOptions = getTransformerOptions('postcss', (0, language_1.isAliasOf)(alias, lang) ? alias : null, \n // todo: this seems wrong and ugly\n { ignoreAliasOverride: true });\n const transformed = await (0, exports.transform)('postcss', postcssOptions, {\n content: code,\n markup: fullMarkup,\n map,\n filename,\n attributes,\n });\n code = transformed.code;\n map = transformed.map;\n dependencies = (0, utils_1.concat)(dependencies, transformed.dependencies);\n }\n const transformed = await (0, exports.transform)('globalStyle', getTransformerOptions('globalStyle'), { content: code, markup: fullMarkup, map, filename, attributes });\n code = transformed.code;\n map = transformed.map;\n }\n else if ('global' in attributes) {\n console.warn(`[svelte-preprocess] 'global' attribute found, but 'postcss' is not installed. 'postcss' is used to walk through the CSS and transform any necessary selector.`);\n }\n return { code, map, dependencies };\n }"}}

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -1,79 +0,0 @@
{
"hash": "d3b1aa2d",
"configHash": "479474dc",
"lockfileHash": "0f5e7d9a",
"browserHash": "fbbdc3c1",
"optimized": {
"svelte": {
"src": "../../svelte/src/runtime/index.js",
"file": "svelte.js",
"fileHash": "517ca68a",
"needsInterop": false
},
"svelte/animate": {
"src": "../../svelte/src/runtime/animate/index.js",
"file": "svelte_animate.js",
"fileHash": "d4a9d0d6",
"needsInterop": false
},
"svelte/easing": {
"src": "../../svelte/src/runtime/easing/index.js",
"file": "svelte_easing.js",
"fileHash": "a84c4837",
"needsInterop": false
},
"svelte/internal": {
"src": "../../svelte/src/runtime/internal/index.js",
"file": "svelte_internal.js",
"fileHash": "d7c5720a",
"needsInterop": false
},
"svelte/motion": {
"src": "../../svelte/src/runtime/motion/index.js",
"file": "svelte_motion.js",
"fileHash": "bc49f799",
"needsInterop": false
},
"svelte/store": {
"src": "../../svelte/src/runtime/store/index.js",
"file": "svelte_store.js",
"fileHash": "760b4d9a",
"needsInterop": false
},
"svelte/internal/disclose-version": {
"src": "../../svelte/src/runtime/internal/disclose-version/index.js",
"file": "svelte_internal_disclose-version.js",
"fileHash": "e4fb69df",
"needsInterop": false
},
"svelte/transition": {
"src": "../../svelte/src/runtime/transition/index.js",
"file": "svelte_transition.js",
"fileHash": "dbc819a9",
"needsInterop": false
},
"@lottiefiles/lottie-player": {
"src": "../../@lottiefiles/lottie-player/dist/lottie-player.esm.js",
"file": "@lottiefiles_lottie-player.js",
"fileHash": "cffe8525",
"needsInterop": false
}
},
"chunks": {
"chunk-76MXQKTF": {
"file": "chunk-76MXQKTF.js"
},
"chunk-ETWSND26": {
"file": "chunk-ETWSND26.js"
},
"chunk-TB4K45JM": {
"file": "chunk-TB4K45JM.js"
},
"chunk-2GBBIY5G": {
"file": "chunk-2GBBIY5G.js"
},
"chunk-V6TY7KAL": {
"file": "chunk-V6TY7KAL.js"
}
}
}

View File

@@ -1,9 +0,0 @@
// node_modules/svelte/src/shared/version.js
var VERSION = "4.2.19";
var PUBLIC_VERSION = "4";
export {
VERSION,
PUBLIC_VERSION
};
//# sourceMappingURL=chunk-2GBBIY5G.js.map

View File

@@ -1,7 +0,0 @@
{
"version": 3,
"sources": [],
"sourcesContent": [],
"mappings": "",
"names": []
}

View File

@@ -1,9 +1,7 @@
import {
VERSION
} from "./chunk-2GBBIY5G.js";
import {
VERSION,
__publicField
} from "./chunk-V6TY7KAL.js";
} from "./chunk-U6FMO7UD.js";
// node_modules/svelte/src/runtime/internal/utils.js
function noop() {
@@ -2355,7 +2353,6 @@ function get_custom_element_value(prop, value, props_definition, transform) {
return value && JSON.parse(value);
case "Boolean":
return value;
// conversion already handled above
case "Number":
return value != null ? +value : value;
default:
@@ -2845,4 +2842,4 @@ export {
SvelteComponentTyped,
loop_guard
};
//# sourceMappingURL=chunk-TB4K45JM.js.map
//# sourceMappingURL=chunk-BLHMZ75E.js.map

File diff suppressed because one or more lines are too long

View File

@@ -4,7 +4,7 @@ import {
run_all,
safe_not_equal,
subscribe
} from "./chunk-TB4K45JM.js";
} from "./chunk-BLHMZ75E.js";
// node_modules/svelte/src/runtime/store/index.js
var subscriber_queue = [];
@@ -114,4 +114,4 @@ export {
derived,
readonly
};
//# sourceMappingURL=chunk-76MXQKTF.js.map
//# sourceMappingURL=chunk-I2CJVP44.js.map

View File

@@ -2,6 +2,13 @@ var __defProp = Object.defineProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
// node_modules/svelte/src/shared/version.js
var VERSION = "4.2.19";
var PUBLIC_VERSION = "4";
export {
__publicField
__publicField,
VERSION,
PUBLIC_VERSION
};
//# sourceMappingURL=chunk-U6FMO7UD.js.map

View File

@@ -2,6 +2,6 @@
"version": 3,
"sources": ["../../svelte/src/shared/version.js"],
"sourcesContent": ["// generated during release, do not modify\n\n/**\n * The current version, as set in package.json.\n *\n * https://svelte.dev/docs/svelte-compiler#svelte-version\n * @type {string}\n */\nexport const VERSION = '4.2.19';\nexport const PUBLIC_VERSION = '4';\n"],
"mappings": ";AAQO,IAAM,UAAU;AAChB,IAAM,iBAAiB;",
"mappings": ";;;;;AAQO,IAAM,UAAU;AAChB,IAAM,iBAAiB;",
"names": []
}

View File

@@ -11,9 +11,8 @@ import {
onMount,
setContext,
tick
} from "./chunk-TB4K45JM.js";
import "./chunk-2GBBIY5G.js";
import "./chunk-V6TY7KAL.js";
} from "./chunk-BLHMZ75E.js";
import "./chunk-U6FMO7UD.js";
export {
SvelteComponentDev as SvelteComponent,
SvelteComponentTyped,
@@ -28,3 +27,4 @@ export {
setContext,
tick
};
//# sourceMappingURL=svelte.js.map

View File

@@ -3,9 +3,8 @@ import {
} from "./chunk-ETWSND26.js";
import {
is_function
} from "./chunk-TB4K45JM.js";
import "./chunk-2GBBIY5G.js";
import "./chunk-V6TY7KAL.js";
} from "./chunk-BLHMZ75E.js";
import "./chunk-U6FMO7UD.js";
// node_modules/svelte/src/runtime/animate/index.js
function flip(node, { from, to }, params = {}) {

View File

@@ -2,6 +2,6 @@
"version": 3,
"sources": ["../../svelte/src/runtime/animate/index.js"],
"sourcesContent": ["import { cubicOut } from '../easing/index.js';\nimport { is_function } from '../internal/index.js';\n\n/**\n * The flip function calculates the start and end position of an element and animates between them, translating the x and y values.\n * `flip` stands for [First, Last, Invert, Play](https://aerotwist.com/blog/flip-your-animations/).\n *\n * https://svelte.dev/docs/svelte-animate#flip\n * @param {Element} node\n * @param {{ from: DOMRect; to: DOMRect }} fromTo\n * @param {import('./public.js').FlipParams} params\n * @returns {import('./public.js').AnimationConfig}\n */\nexport function flip(node, { from, to }, params = {}) {\n\tconst style = getComputedStyle(node);\n\tconst transform = style.transform === 'none' ? '' : style.transform;\n\tconst [ox, oy] = style.transformOrigin.split(' ').map(parseFloat);\n\tconst dx = from.left + (from.width * ox) / to.width - (to.left + ox);\n\tconst dy = from.top + (from.height * oy) / to.height - (to.top + oy);\n\tconst { delay = 0, duration = (d) => Math.sqrt(d) * 120, easing = cubicOut } = params;\n\treturn {\n\t\tdelay,\n\t\tduration: is_function(duration) ? duration(Math.sqrt(dx * dx + dy * dy)) : duration,\n\t\teasing,\n\t\tcss: (t, u) => {\n\t\t\tconst x = u * dx;\n\t\t\tconst y = u * dy;\n\t\t\tconst sx = t + (u * from.width) / to.width;\n\t\t\tconst sy = t + (u * from.height) / to.height;\n\t\t\treturn `transform: ${transform} translate(${x}px, ${y}px) scale(${sx}, ${sy});`;\n\t\t}\n\t};\n}\n"],
"mappings": ";;;;;;;;;;AAaO,SAAS,KAAK,MAAM,EAAE,MAAM,GAAG,GAAG,SAAS,CAAC,GAAG;AACrD,QAAM,QAAQ,iBAAiB,IAAI;AACnC,QAAM,YAAY,MAAM,cAAc,SAAS,KAAK,MAAM;AAC1D,QAAM,CAAC,IAAI,EAAE,IAAI,MAAM,gBAAgB,MAAM,GAAG,EAAE,IAAI,UAAU;AAChE,QAAM,KAAK,KAAK,OAAQ,KAAK,QAAQ,KAAM,GAAG,SAAS,GAAG,OAAO;AACjE,QAAM,KAAK,KAAK,MAAO,KAAK,SAAS,KAAM,GAAG,UAAU,GAAG,MAAM;AACjE,QAAM,EAA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AG;AACrC,YAAM,KAAK,IAAK,IAAI,KAAK,SAAU,GAAG;AACtC,aAAO,cAAc,SAAS,cAAc,CAAC,OAAO,CAAC,aAAa,EAAE,KAAK,EAAE;AAAA,IAC5E;AAAA,EACD;AACD;",
"names": []
}

View File

@@ -32,9 +32,8 @@ import {
} from "./chunk-ETWSND26.js";
import {
identity
} from "./chunk-TB4K45JM.js";
import "./chunk-2GBBIY5G.js";
import "./chunk-V6TY7KAL.js";
} from "./chunk-BLHMZ75E.js";
import "./chunk-U6FMO7UD.js";
export {
backIn,
backInOut,
@@ -68,3 +67,4 @@ export {
sineInOut,
sineOut
};
//# sourceMappingURL=svelte_easing.js.map

View File

@@ -202,9 +202,8 @@ import {
validate_store,
validate_void_dynamic_element,
xlink_attr
} from "./chunk-TB4K45JM.js";
import "./chunk-2GBBIY5G.js";
import "./chunk-V6TY7KAL.js";
} from "./chunk-BLHMZ75E.js";
import "./chunk-U6FMO7UD.js";
export {
HtmlTag,
HtmlTagHydration,
@@ -410,3 +409,4 @@ export {
validate_void_dynamic_element,
xlink_attr
};
//# sourceMappingURL=svelte_internal.js.map

View File

@@ -1,7 +1,6 @@
import {
PUBLIC_VERSION
} from "./chunk-2GBBIY5G.js";
import "./chunk-V6TY7KAL.js";
} from "./chunk-U6FMO7UD.js";
// node_modules/svelte/src/runtime/internal/disclose-version/index.js
if (typeof window !== "undefined")

View File

@@ -2,6 +2,6 @@
"version": 3,
"sources": ["../../svelte/src/runtime/internal/disclose-version/index.js"],
"sourcesContent": ["import { PUBLIC_VERSION } from '../../../shared/version.js';\n\nif (typeof window !== 'undefined')\n\t// @ts-ignore\n\t(window.__svelte || (window.__svelte = { v: new Set() })).v.add(PUBLIC_VERSION);\n"],
"mappings": ";;;;;;AAEA,IAAI,OAAO,WAAW;AAErB,GAAC,OAAO,aAAa,OAAO,WAAW,EAAE,GAAG,oBAAI,IAAI,EAAE,IAAI,EAAE,IAAI,cAAc;",
"mappings": ";;;;;AAEA,IAAI,OAAO,WAAW;AAErB,GAAC,OAAO,aAAa,OAAO,WAAW,EAAE,GAAG,oBAAI,IAAI,EAAE,IAAI,EAAE,IAAI,cAAc;",
"names": []
}

View File

@@ -1,15 +1,14 @@
import {
writable
} from "./chunk-76MXQKTF.js";
} from "./chunk-I2CJVP44.js";
import "./chunk-ETWSND26.js";
import {
assign,
identity,
loop,
now
} from "./chunk-TB4K45JM.js";
import "./chunk-2GBBIY5G.js";
import "./chunk-V6TY7KAL.js";
} from "./chunk-BLHMZ75E.js";
import "./chunk-U6FMO7UD.js";
// node_modules/svelte/src/runtime/motion/utils.js
function is_date(obj) {

File diff suppressed because one or more lines are too long

View File

@@ -3,12 +3,11 @@ import {
readable,
readonly,
writable
} from "./chunk-76MXQKTF.js";
} from "./chunk-I2CJVP44.js";
import {
get_store_value
} from "./chunk-TB4K45JM.js";
import "./chunk-2GBBIY5G.js";
import "./chunk-V6TY7KAL.js";
} from "./chunk-BLHMZ75E.js";
import "./chunk-U6FMO7UD.js";
export {
derived,
get_store_value as get,
@@ -16,3 +15,4 @@ export {
readonly,
writable
};
//# sourceMappingURL=svelte_store.js.map

View File

@@ -7,9 +7,8 @@ import {
identity,
is_function,
split_css_unit
} from "./chunk-TB4K45JM.js";
import "./chunk-2GBBIY5G.js";
import "./chunk-V6TY7KAL.js";
} from "./chunk-BLHMZ75E.js";
import "./chunk-U6FMO7UD.js";
// node_modules/svelte/src/runtime/transition/index.js
function blur(node, { delay = 0, duration = 400, easing = cubicInOut, amount = 5, opacity = 0 } = {}) {

File diff suppressed because one or more lines are too long

View File

@@ -1,5 +1,8 @@
import sveltePreprocess from 'svelte-preprocess';
/** @type {import('@sveltejs/vite-plugin-svelte').Options} */
const config = {
preprocess: sveltePreprocess(),
compilerOptions: {
css: 'injected'
}