Skip to content

Commit a1acaee

Browse files
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.
1 parent 503bad4 commit a1acaee

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

CHANGELOG.md

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

3536
## [4.0.14] - 2025-03-13

packages/tailwindcss/src/plugin.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import type { PluginUtils } from './compat/config/resolve-config'
12
import type { ThemeConfig } from './compat/config/types'
23
import type {
34
Config,
@@ -34,4 +35,11 @@ createPlugin.withOptions = function <T>(
3435
export default createPlugin
3536

3637
// v3 compatible types previously exported via `tailwindcss/types/config`
37-
export type { Config, PluginAPI, PluginFn as PluginCreator, Plugin as PluginsConfig, ThemeConfig }
38+
export type {
39+
Config,
40+
PluginAPI,
41+
PluginFn as PluginCreator,
42+
Plugin as PluginsConfig,
43+
PluginUtils,
44+
ThemeConfig,
45+
}

0 commit comments

Comments
 (0)