this_algorithm/web-frontend/vite.config.js
2023-04-09 00:15:52 -04:00

21 lines
533 B
JavaScript

import { sveltekit } from '@sveltejs/kit/vite';
import { SvelteKitPWA } from '@vite-pwa/sveltekit';
import { defineConfig } from 'vite';
import wasm from "vite-plugin-wasm";
import topLevelAwait from "vite-plugin-top-level-await";
export default defineConfig({
plugins: [
sveltekit(), SvelteKitPWA({
workbox: {
globPatterns: ['**/*.{js,html,wasm}'],
},
devOptions: {
enabled: true,
},
}),
wasm(),
topLevelAwait(),
]
});