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

@@ -34,6 +34,13 @@ export default defineConfig(({ mode }) => {
outDir: resolve(__dirname, 'dist'),
emptyOutDir: !isDemo, // only empty on first build (full)
minify: false,
cssCodeSplit: true,
rollupOptions: {
onwarn: function (message, handler) {
if (message.code === 'EVAL') return
handler(message)
},
},
},
define: {
'process.env.NODE_ENV': '"production"',