Spam on building
leaftail1880 opened this issue · 2 comments
leaftail1880 commented
Since not all endpoinds uses all method, i need to disable this warnings
This can be done by adding this to vite.config.rollupOptions:
onwarn(warning, handler) {
if (
warning.code === "MISSING_EXPORT" &&
warning.id === "virtual:vite-plugin-api:router"
)
return;
handler(warning);
}
This code snipped should be added to tutorial, or as plugin option
yracnet commented
Thankyou, I will check it
yracnet commented
Applied