Files
moreminimore-vibe/vite.main.config.mts
Will Chen 8d88460fe1 disable sourcemap (#1936)
The sourcemap is almost 20mb (and we still don't get proper stacktraces
for errors in the main/node.js thread)

<!-- CURSOR_SUMMARY -->
> [!NOTE]
> <sup>[Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) is
generating a summary for commit
267749b95f6416b3f88c8caa9a72e21438fc1ee8. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
2025-12-11 16:54:45 -08:00

25 lines
416 B
TypeScript

import { defineConfig } from "vite";
import path from "path";
// https://vitejs.dev/config
export default defineConfig({
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
build: {
rollupOptions: {
external: ["better-sqlite3"],
},
},
plugins: [
{
name: "restart",
closeBundle() {
process.stdin.emit("data", "rs");
},
},
],
});