|
|
@ -62,7 +62,15 @@ export async function bundle(
|
|
|
|
...options,
|
|
|
|
...options,
|
|
|
|
emptyOutDir: true,
|
|
|
|
emptyOutDir: true,
|
|
|
|
ssr,
|
|
|
|
ssr,
|
|
|
|
outDir: ssr ? config.tempDir : config.outDir,
|
|
|
|
// minify with esbuild in MPA mode (for CSS)
|
|
|
|
|
|
|
|
minify: ssr
|
|
|
|
|
|
|
|
? config.mpa
|
|
|
|
|
|
|
|
? 'esbuild'
|
|
|
|
|
|
|
|
: false
|
|
|
|
|
|
|
|
: typeof options.minify === 'boolean'
|
|
|
|
|
|
|
|
? options.minify
|
|
|
|
|
|
|
|
: !process.env.DEBUG,
|
|
|
|
|
|
|
|
outDir: ssr ? config.tempDir : options.outDir || config.outDir,
|
|
|
|
cssCodeSplit: false,
|
|
|
|
cssCodeSplit: false,
|
|
|
|
rollupOptions: {
|
|
|
|
rollupOptions: {
|
|
|
|
...rollupOptions,
|
|
|
|
...rollupOptions,
|
|
|
@ -107,9 +115,7 @@ export async function bundle(
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
// minify with esbuild in MPA mode (for CSS)
|
|
|
|
|
|
|
|
minify: ssr ? (config.mpa ? 'esbuild' : false) : !process.env.DEBUG
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|