From 9a3119cab4cf2a59e30c9bcaee2cc2ab8e627704 Mon Sep 17 00:00:00 2001 From: saicaca Date: Mon, 29 Apr 2024 15:41:41 +0800 Subject: [PATCH] chore: temporarily suppress dynamic import warning --- astro.config.mjs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/astro.config.mjs b/astro.config.mjs index 3310ed3..535d44f 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -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: {