fix: add workaround to fix build-temp-types on Netlify#7495
fix: add workaround to fix build-temp-types on Netlify#7495patak-cat merged 2 commits intovitejs:mainfrom
Conversation
|
I can also send a PR for postcss-load-config but I won't have time for a couple of days at least (FYI @ai). |
|
Not in the code. |
|
@fwouts thanks for the PR, I can confirm that this fixed the issue in Netlify |
|
@ai Vite bundles the types too so it needs to be a peer dep to be bundled properly. Maybe that's out of scope for the package, but I think it's fair to still add an optional peer dep for it so there's an explicit link instead on relying on hoisted types. It could help |
|
Optional peer is a good option. Send PR when you will have time. |
Description
This fixes an issue that occurs in the Netlify build, as reported by @patak-dev in #6856 (comment)
This is caused by postcss-load-config missing postcss as a peer dependency, causing a crash when running
tscsince it cannot find the corresponding type definitions because of pnpm's strictness. Thank you @bluwy for the idea!What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123).