Vite issues the following warning when ignoring files for transformation.
Sourcemap is likely to be incorrect: a plugin (vite-plugin-sass-dts) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help
It will also break source maps as the warning states. Returning undefined from the transformation function will remove the warning and fix broken source maps.
Vite issues the following warning when ignoring files for transformation.
It will also break source maps as the warning states. Returning
undefined
from the transformation function will remove the warning and fix broken source maps.