-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(deps)!: update postcss-load-config to v6 #15235
Conversation
Run & review this pull request in StackBlitz Codeflow. |
Yeah I think this is a breaking change and we can't bump this until v6. Unless we can still get Also for future reference, the renovate PR: #15234 |
Hi guys, Is there something blocking this PR to be part of final 6.0? |
@kuchta the PR is already in the v6 milestone. Would you comment on your use case so your comment gives value to this PR? |
@patak-dev Well, it's not part of the v6 alpha release, so I'm curious... My use case is using postcss.config.ts |
@kuchta I see. We're going to use the v6 alpha series to let the ecosystem test the Environment API branch. See: |
bd3a100
to
7999f04
Compare
For information I sent this PR to reduce bundle size: postcss/postcss-load-config#261 |
7999f04
to
81830c4
Compare
I've updated the branch, but I don't think it's working correctly quite yet. Because The alternative is for Also testing locally, it doesn't look like there's an error logged if
|
Thank you @bluwy. If i want to try it, will I have to clone it, build it manually and then install it from build output directory or is it possible to install it directly from that branch using something like
|
You have to clone it locally for now unfortunately, but we're working on making preview releases better soon. The flow that use is a little complicated but it goes like this:
|
Thank you @bluwy. Much appreciated 🙏🏻 |
Looks like
Regarding this, how to do it 😅 I can probably upstream it, but I'm not sure how to "import those dependencies from the base directory" Also, in vite 5, ts-node for postcss-load-config needed to be hoisted. If vite doesn't want to add it to peer deps, people using pnpm can manually configure hoist-patterns? (Also IIRC pnpm since v8, hoists everything by default. So most people won't be seeing this anyway?) Line 1 in 91a1acb
|
I think adding the replacement directly would be best. We had removed the
I was thinking that it could resolve the dependency based on the found config file path, then import that resolved path. Resolving could use
Hmm I actually thought |
Updated.
https://pnpm.io/npmrc#hoist-pattern
|
I added a commit that reduces the patch by using external option. Rollup makes |
I think it's fine. The |
/ecosystem-ci run |
📝 Ran ecosystem CI on
✅ analogjs, histoire, ladle, laravel, marko, previewjs, quasar, qwik, rakkas, storybook, unocss, vite-environment-examples, vite-plugin-pwa, vite-plugin-react, vite-plugin-react-swc, vite-plugin-vue, vite-setup-catalogue, vitepress, vuepress |
Now that yaml is an optional peer dep, the package size is reduced by ~250kB and the compressed package size is reduced by 60kB 🎉 |
Looks like you're right TIL! Strange that it seemed like I needed peer deps to make it work in the past, but if it turns out we don't, especially given |
Yeah earlier it was needed. pnpm changed the default behavior somewhere between v7-9. I guess it's better to keep them in peer deps, because I'm not sure how yarn berry behaves with that. People might still need packageExtensions there to make it work? |
I'll prefer to keep the peerDeps as it's probably more correct. But I'm fine with going without it as it was like that with ts-node. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's go with peer deps then
Description
Bump postcss-load-config to v5. It added support for ESM + TS postcss configs (postcss/postcss-load-config#249). closes #15234 closes #15745 (and other issues that were closed/locked as they were upstream issues).
Additional context
It now needs jiti instead of ts-node for TS config files in Node.js. Might be a slightly breaking change for users?
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).