diff --git a/vite.config.js b/vite.config.js index 53b43051..f4b5207e 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,11 +1,12 @@ import preact from '@preact/preset-vite'; import { resolve } from 'path'; -import { defineConfig } from 'vite'; +import { defineConfig, splitVendorChunkPlugin } from 'vite'; // https://vitejs.dev/config/ export default defineConfig({ - plugins: [preact()], + plugins: [preact(), splitVendorChunkPlugin()], build: { + sourcemap: true, rollupOptions: { input: { main: resolve(__dirname, 'index.html'),