Bumped vite build targets

This commit is contained in:
Nicolai Ort 2023-02-23 13:59:27 +01:00
parent ad454c386c
commit 5fe47634e8
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F

View File

@ -20,14 +20,15 @@ export default defineConfig(({ command, mode }) => {
build: { build: {
polyfillDynamicImport: false, polyfillDynamicImport: false,
cssCodeSplit: false, cssCodeSplit: false,
minify: isProduction minify: isProduction,
target: ["es2020", "esnext", "edge88", "chrome87", "safari14"]
}, },
plugins: [ plugins: [
svelte({ svelte({
//@ts-ignore //@ts-ignore
hot: !isProduction, hot: !isProduction,
emitCss: true, emitCss: true,
extensions: [ '.md', '.svx', '.svelte' ], extensions: ['.md', '.svx', '.svelte'],
preprocess: [ preprocess: [
// //
] ]