mirror of
https://github.com/luxfi/safe-wallet.git
synced 2026-10-30 15:19:21 +00:00
* chore: tx-builder production release workflow and app-prefixed release tags * chore: check both legacy and prefixed tags for version duplicates --------- Co-authored-by: Hanzo Dev <[email protected]>
51 lines
1.2 KiB
TypeScript
51 lines
1.2 KiB
TypeScript
import { defineConfig, Plugin } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import svgr from 'vite-plugin-svgr'
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
svgr({
|
|
svgrOptions: {
|
|
exportType: 'named',
|
|
ref: true,
|
|
svgo: false,
|
|
titleProp: true,
|
|
},
|
|
include: '**/*.svg',
|
|
}),
|
|
],
|
|
base: process.env.VITE_BASE_PATH || '/',
|
|
build: {
|
|
outDir: 'build',
|
|
sourcemap: true,
|
|
rollupOptions: {
|
|
output: {
|
|
manualChunks(id) {
|
|
if (id.includes('node_modules')) {
|
|
if (
|
|
id.includes('react-dom') ||
|
|
id.includes('@hello-pangea/dnd') ||
|
|
id.includes('@mui') ||
|
|
id.includes('react-router') ||
|
|
id.includes('@remix-run/router')
|
|
)
|
|
return 'vendor'
|
|
if (id.includes('ethers')) return 'ethers'
|
|
if (id.includes('viem')) return 'viem'
|
|
if (id.includes('axios')) return 'axios'
|
|
if (id.includes('localforage')) return 'localforage'
|
|
}
|
|
},
|
|
},
|
|
},
|
|
},
|
|
server: {
|
|
port: 4000,
|
|
open: false,
|
|
},
|
|
preview: {
|
|
port: 4000,
|
|
},
|
|
})
|