my-notes-viewer/esbuild.config.server.js

24 lines
695 B
JavaScript
Raw Permalink Normal View History

2021-03-22 15:59:05 +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 = ["./src/ssr.ts"]
config.options.outfile = __dirname + "/_temp/app.server.js"
config.options.plugins = [
config.sveltePlugin({
2022-04-26 11:14:37 +02:00
compilerOptions: {
2021-03-22 15:59:05 +01:00
generate: "ssr",
css: false,
hydratable: true,
2022-04-26 11:14:37 +02:00
dev: (process.argv?.length > 2 ? process.argv[2] : "build") !== "build",
2021-03-22 15:59:05 +01:00
},
preprocess: svelteConfig.preprocess,
}),
config.resolvePlugin,
]
module.exports = config