snowballtools-base-mirror/packages/frontend/vite.config.ts

33 lines
721 B
TypeScript
Raw Normal View History

2024-04-24 17:18:59 +00:00
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
2024-04-11 21:40:22 +00:00
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
2024-04-24 17:18:59 +00:00
utils: '/src/utils',
assets: '/src/assets',
context: '/src/context',
components: '/src/components',
2024-04-11 21:40:22 +00:00
},
},
optimizeDeps: {
include: [
// "@snowballtools/types",
// "@snowballtools/utils",
// "@snowballtools/auth",
// "@snowballtools/auth-lit",
// "@snowballtools/smartwallet-alchemy-light",
// "@snowballtools/link-lit-alchemy-light",
// "@snowballtools/js-sdk",
],
},
2024-04-24 17:18:18 +00:00
define: {
2024-04-25 00:02:52 +00:00
'process.env': {},
2024-04-24 17:18:18 +00:00
},
2024-05-02 15:08:02 +00:00
build: {
sourcemap: true,
},
2024-04-11 21:40:22 +00:00
});