vavite
vavite copied to clipboard
Vike / buildSteps / Server / include external dependencies
How can I configure the build step for the server to include all dependencies in the final output?
buildSteps: [
{
name: "client",
config: {
build: {
sourcemap: true,
}
}
},
{
name: "server",
config: {
build: {
ssr: true,
target: "node20",
sourcemap: true,
rollupOptions: {
output: {
format: 'es',
},
}
},
},
},
],
I would like to get an output similar to this rollup setup:
import { nodeResolve } from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import typescript from '@rollup/plugin-typescript';
import autoNamedExports from 'rollup-plugin-auto-named-exports';
export default {
input: 'hono-entry.aws_lambda.ts',
output: {
dir: 'output',
format: 'es',
},
plugins: [
typescript(),
nodeResolve(),
commonjs(),
autoNamedExports()
]
}