// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. import * as path from 'path'; import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; // https://vitejs.dev/config/ export default defineConfig({ build: { sourcemap: 'hidden', rollupOptions: { output: { manualChunks(id) { return id.includes('node_modules') ? 'vendor' : 'main'; }, }, }, }, plugins: [react()], resolve: { alias: { app: path.resolve(__dirname, 'src/app'), }, }, });