chore: temporarily suppress dynamic import warning

This commit is contained in:
saicaca 2024-04-29 15:41:41 +08:00
parent 8ce1c7ab6e
commit 9a3119cab4
1 changed files with 11 additions and 0 deletions

View File

@ -83,6 +83,17 @@ export default defineConfig({
],
},
vite: {
build: {
rollupOptions: {
onwarn(warning, warn) {
// temporarily suppress this warning
if (warning.message.includes("is dynamically imported by") && warning.message.includes("but also statically imported by")) {
return;
}
warn(warning);
}
}
},
css: {
preprocessorOptions: {
stylus: {