fix CI failing with Invalid value "iife" for option "worker.format"

UMD and IIFE output formats are not supported for code-splitting builds. see https://github.com/vitejs/vite/issues/18585
This commit is contained in:
Valere
2025-10-14 12:25:31 +02:00
parent 60332dc2db
commit 58d60b35fd

View File

@@ -97,6 +97,9 @@ export default ({
cert: fs.readFileSync("./backend/dev_tls_m.localhost.crt"),
},
},
worker: {
format: "es",
},
build: {
minify: mode === "production" ? true : false,
sourcemap: true,