wm-fontis-tibi-2023/esbuild.config.server.js

25 lines
728 B
JavaScript
Raw Permalink Normal View History

2023-07-13 16:28:54 +02:00
module.exports = config
2023-07-13 13:12:19 +02: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",
css: false,
hydratable: true,
dev: (process.argv?.length > 2 ? process.argv[2] : "build") !== "build",
},
preprocess: svelteConfig.preprocess,
}),
config.resolvePlugin,
]
module.exports = config