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(cssnano-preset-default): update css-declaration-sorter #1377
Conversation
0c0b765
to
eebdc2b
Compare
Can I help with this? Seems that something is wrong with the TS type? Edit: ah I export a |
eebdc2b
to
47f9bbd
Compare
Yes, I think I know what the problem is. cssnano expects the plugins to conform to the postcss which means the function that returns the plugin must have the css-declaration-sorter does set the property in JS: |
I see! Just pushed 6.2.2 which uses Since having a named export and default export for both ESM and CJS in a TS type definition file is not possible, I think I'll push a major bump later so I can just use a named export. 🤔 Sidenote, I see |
Codecov Report
@@ Coverage Diff @@
## master #1377 +/- ##
=======================================
Coverage 97.65% 97.65%
=======================================
Files 123 123
Lines 9958 9958
=======================================
Hits 9724 9724
Misses 234 234 Continue to review full report at Codecov.
|
Thank! Seems fine now. |
Drop timsort dependency and fix issues with imports.
3b1c27f
to
6edbd5a
Compare
There is still an override in the site package.json right? https://github.com/cssnano/cssnano/blob/master/site/package.json#L25-L28 (don't have much experience with pnpm) |
|
That is odd, the CJS build inlines the orders so this seems like old code? Or Webpack is loading the ESM build and convers imports to cjs? Thoughts? |
Works fine now after deleting all |
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.
Looks good! ✨
Drop timsort dependency and fix issues with imports. Changelog