2023-02-21 13:36:06 +01:00
|
|
|
const config = require("./esbuild.config.js")
|
|
|
|
const svelteConfig = require("./svelte.config")
|
|
|
|
|
|
|
|
config.options.sourcemap = "inline"
|
|
|
|
config.options.minify = false
|
|
|
|
config.options.platform = "node"
|
|
|
|
config.options.format = "cjs"
|
|
|
|
config.options.entryPoints = ["./frontend/src/ssr.ts"]
|
|
|
|
config.options.outfile = __dirname + "/_temp/app.server.js"
|
|
|
|
config.options.plugins = [
|
|
|
|
config.sveltePlugin({
|
|
|
|
compilerOptions: {
|
|
|
|
generate: "ssr",
|
2024-01-27 19:58:35 +01:00
|
|
|
css: false,
|
2023-02-21 13:36:06 +01:00
|
|
|
hydratable: true,
|
|
|
|
dev: (process.argv?.length > 2 ? process.argv[2] : "build") !== "build",
|
|
|
|
},
|
|
|
|
preprocess: svelteConfig.preprocess,
|
|
|
|
}),
|
|
|
|
config.resolvePlugin,
|
|
|
|
]
|
|
|
|
|
|
|
|
module.exports = config
|