yracnet/vite-plugin-api-routes

Spam on building

leaftail1880 opened this issue · 2 comments

изображение

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

Thankyou, I will check it

Applied