From ed25b0e8ba202100a18d0386531c5eb3766afba5 Mon Sep 17 00:00:00 2001 From: robin Date: Thu, 11 Jul 2024 18:35:03 +0000 Subject: [PATCH] fixes --- esbuild.config.admin.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 esbuild.config.admin.js diff --git a/esbuild.config.admin.js b/esbuild.config.admin.js new file mode 100644 index 0000000..3d5bce5 --- /dev/null +++ b/esbuild.config.admin.js @@ -0,0 +1,22 @@ +const config = require("./esbuild.config.js") +const svelteConfig = require("./svelte.config.js") + +config.options.minify = false +config.options.entryPoints = ["./frontend/src/admin.ts"] +config.options.outfile = "./" + config.distDir + "/admin.mjs" +delete config.options.outdir +config.options.splitting = false +config.options.plugins = [ + config.sveltePlugin({ + compilerOptions: { + css: false, + hydratable: false, + dev: (process.argv?.length > 2 ? process.argv[2] : "build") !== "build", + }, + preprocess: svelteConfig.preprocess, + cache: true, + }), + config.resolvePlugin, +] + +module.exports = config