Export PluginUtils from tailwindcss/plugin (#17299)

Closes #17293

We used to export this in v3 so might as well bring it back for the
`tailwindcss/plugin` export list.
This commit is contained in:
Philipp Spiess 2025-03-20 12:19:45 +01:00 • committed by GitHub
parent 503bad4e75
commit a1acaeeee0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 1 deletions

View file

@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Prevent segfault when loaded in a worker thread on Linux ([#17276](https://github.com/tailwindlabs/tailwindcss/pull/17276))
- Ensure multiple `--value(…)` or `--modifier(…)` calls don't delete subsequent declarations ([#17273](https://github.com/tailwindlabs/tailwindcss/pull/17273))
- Fix class extraction followed by `(` in Slim ([#17278](https://github.com/tailwindlabs/tailwindcss/pull/17278))
- Export `PluginUtils` from `tailwindcss/plugin` for compatibility with v3 ([#17299](https://github.com/tailwindlabs/tailwindcss/pull/17299))
- Increase Standalone hardware compatibility on macOS x64 builds ([#17267](https://github.com/tailwindlabs/tailwindcss/pull/17267))
## [4.0.14] - 2025-03-13

View file

@ -1,3 +1,4 @@
import type { PluginUtils } from './compat/config/resolve-config'
import type { ThemeConfig } from './compat/config/types'
import type {
Config,
@ -34,4 +35,11 @@ createPlugin.withOptions = function <T>(
export default createPlugin
// v3 compatible types previously exported via `tailwindcss/types/config`
export type { Config, PluginAPI, PluginFn as PluginCreator, Plugin as PluginsConfig, ThemeConfig }
export type {
Config,
PluginAPI,
PluginFn as PluginCreator,
Plugin as PluginsConfig,
PluginUtils,
ThemeConfig,
}