diff --git a/CHANGELOG.md b/CHANGELOG.md index 40f1317f2eb3..8c5e3f489859 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - _Upgrade (experimental)_: Migrate `plugins` with options to CSS ([#14700](https://github.com/tailwindlabs/tailwindcss/pull/14700)) +- _Upgrade (experimental)_: Allow JS configuration files with `corePlugins` options to be migrated to CSS ([#14742](https://github.com/tailwindlabs/tailwindcss/pull/14742)) ### Fixed diff --git a/packages/@tailwindcss-upgrade/src/migrate-js-config.ts b/packages/@tailwindcss-upgrade/src/migrate-js-config.ts index 3c7818902953..20f7fdd7f53c 100644 --- a/packages/@tailwindcss-upgrade/src/migrate-js-config.ts +++ b/packages/@tailwindcss-upgrade/src/migrate-js-config.ts @@ -63,6 +63,12 @@ export async function migrateJsConfig( if (themeConfig) cssConfigs.push(themeConfig) } + if ('corePlugins' in unresolvedConfig) { + info( + `The \`corePlugins\` option is no longer supported as of Tailwind CSS v4.0, so it's been removed from your configuration.`, + ) + } + let simplePlugins = findStaticPlugins(source) if (simplePlugins !== null) { for (let [path, options] of simplePlugins) { @@ -214,6 +220,7 @@ function canMigrateConfig(unresolvedConfig: Config, source: string): boolean { 'plugins', 'presets', 'prefix', // Prefix is handled in the dedicated prefix migrator + 'corePlugins', ] if (Object.keys(unresolvedConfig).some((key) => !knownProperties.includes(key))) {