chore: get rid of build warnings

This commit is contained in:
Simon
2026-01-16 14:50:56 +08:00
parent ec2b744bab
commit c8bf0dd20f
8 changed files with 30 additions and 16 deletions

View File

@@ -20,6 +20,16 @@ export default defineConfig({
base: './',
clearScreen: false,
plugins: [react(), tailwindcss()],
build: {
chunkSizeWarningLimit: 2000,
cssCodeSplit: true,
rollupOptions: {
onwarn: function (message, handler) {
if (message.code === 'EVAL') return
handler(message)
},
},
},
resolve: {
alias: {
// Self root