In an issue originally identified in the TailwindCSS repository, I've been able to work through the upstream dependencies and found that vite relies on postcss-load-config to load it's configuration files.
I originally thought that this was an issue with postcss-load-config, however I later realised that support for .mts files has already been integrated into it. The issue is that vite is using a very old version of postcss-load-config.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
In an issue originally identified in the TailwindCSS repository, I've been able to work through the upstream dependencies and found that vite relies on postcss-load-config to load it's configuration files.
https://github.com/tailwindlabs/tailwindcss/issues/13927
I originally thought that this was an issue with postcss-load-config, however I later realised that support for
.mts
files has already been integrated into it. The issue is that vite is using a very old version of postcss-load-config.https://github.com/postcss/postcss-load-config/issues/265
What build tool (or framework if it abstracts the build tool) are you using?
vue 3.4.31, typescript 5.5.2, vue-tsc 2.0.24, vite 5.3.2, tailwindcss 3.4.4
Reproduction
https://github.com/jscarle/ReproTailwindCSS
Steps to reproduce
No response
System Info
Used Package Manager
npm
Logs
No response
Validations