wm-AllKids-tibi2023/esbuild.config.admin.js
robin ed25b0e8ba
Some checks failed
deploy to production / lighthouse-evaluation (push) Failing after 0s
deploy to production / deploy (push) Failing after 24s
fixes
2024-07-11 18:35:03 +00:00

23 lines
667 B
JavaScript

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