-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Expose flattenColorPalette
#15318
Expose flattenColorPalette
#15318
Conversation
a9bf926
to
e69dd35
Compare
e69dd35
to
8eeaeda
Compare
"./lib/util/flattenColorPalette": { | ||
"require": "./src/compat/flatten-color-palette.cts", | ||
"import": "./src/compat/flatten-color-palette.ts" | ||
}, |
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.
ngl kinda sad we have to export this one but makes sense.
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.
Left some notes about stuff but generally looks good
### Fixed | ||
|
||
- Fix dependency related warnings when using `@tailwindcss/postcss` on Windows ([#15321](https://github.com/tailwindlabs/tailwindcss/pull/15321)) |
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.
Was a bit confused by this one, but makes sense!
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.
lol yeah my bad when I merged the other one 😕
Resolves #15315
It looks like we implemented this in Core but forgot to expose it from the distributed package (the references are only used for testing plugins internally right now). This exposes
flattenColorPalette
under the old import path oftailwindcss/lib/util/flattenColorPalette
.Test Plan
Added the following plugin to the Vite example and ensured it works as expected: