From a1acaeeee0150a14c6b6843361805ffb961ad170 Mon Sep 17 00:00:00 2001 From: Philipp Spiess Date: Thu, 20 Mar 2025 12:19:45 +0100 Subject: [PATCH] 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. --- CHANGELOG.md | 1 + packages/tailwindcss/src/plugin.ts | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7cd241db2..a333cb74d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/packages/tailwindcss/src/plugin.ts b/packages/tailwindcss/src/plugin.ts index fa3dd7a0b..5425f03c1 100644 --- a/packages/tailwindcss/src/plugin.ts +++ b/packages/tailwindcss/src/plugin.ts @@ -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 ( 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, +}