tibi-docs/esbuild.config.server.js
Sebastian Frank 86e0a17265
All checks were successful
deploy to production / deploy (push) Successful in 45s
yarn package upgrades, ssr update
2023-11-15 07:00:12 +00:00

24 lines
709 B
JavaScript

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: "external",
hydratable: true,
dev: (process.argv?.length > 2 ? process.argv[2] : "build") !== "build",
},
preprocess: svelteConfig.preprocess,
}),
config.resolvePlugin,
]
module.exports = config