From 3c06c95f396b6e911076bc3291d5855ed01b5caa Mon Sep 17 00:00:00 2001 From: "netop://ウィビ" Date: Sun, 26 Apr 2026 20:18:30 -0700 Subject: cleanup and ready for launch --- svelte.config.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'svelte.config.js') diff --git a/svelte.config.js b/svelte.config.js index c56f5d3..d5b3f97 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,5 +1,20 @@ + + + +/*** IMPORT ------------------------------------------- ***/ + import { vitePreprocess } from "@sveltejs/vite-plugin-svelte"; +import { sveltePreprocess } from "svelte-preprocess"; + +/*** EXPORT ------------------------------------------- ***/ + +const isPackaging = process.argv[1]?.endsWith("svelte-package.js") + || process.env.npm_lifecycle_event === "package" + || process.env.npm_lifecycle_event === "prepublishOnly" + || process.env.npm_lifecycle_event === "publish"; export default { - preprocess: vitePreprocess() + preprocess: isPackaging + ? [sveltePreprocess({ scss: { silenceDeprecations: ["legacy-js-api"] } })] + : [vitePreprocess()] }; -- cgit v1.2.3