vitejs / vite

Next generation frontend tooling. It's fast!
http://vite.dev
MIT License
67.65k stars 6.09k forks source link

Update version of postcss-load-config #17595

Closed jscarle closed 1 month ago

jscarle commented 3 months ago

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

System:
    OS: Windows 11 10.0.22631
    CPU: (24) x64 13th Gen Intel(R) Core(TM) i7-13700KF
    Memory: 48.57 GB / 63.84 GB
  Binaries:
    Node: 22.3.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.8.1 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (123.0.2420.65)
    Internet Explorer: 11.0.22621.3527
  npmPackages:
    @vitejs/plugin-vue: ^5.0.5 => 5.0.5
    vite: ^5.3.2 => 5.3.2

Used Package Manager

npm

Logs

No response

Validations

sapphi-red commented 3 months ago

I wasn't able to reproduce. At least, I can say we cannot update postcss-load-config until v6 as it's a breaking change: #15869

sapphi-red commented 1 month ago

Closing as a duplicate of #15869