Skip to content

Commit 272c6df

Browse files
Add tailwindcss/lib/util/flattenColorPalette.js export (#16411)
Closes #16401 This adds a `tailwindcss/lib/util/flattenColorPalette.js` (notice the `.js` suffix) inline with our other exports.
1 parent d045aaa commit 272c6df

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10-
- Nothing yet!
10+
### Fixed
11+
12+
- Export `tailwindcss/lib/util/flattenColorPalette.js` for backward compatibility ([#16411](https://github.com/tailwindlabs/tailwindcss/pull/16411))
1113

1214
## [4.0.6] - 2025-02-10
1315

packages/tailwindcss/package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@
3535
"require": "./src/compat/flatten-color-palette.cts",
3636
"import": "./src/compat/flatten-color-palette.ts"
3737
},
38+
"./lib/util/flattenColorPalette.js": {
39+
"require": "./src/compat/flatten-color-palette.cts",
40+
"import": "./src/compat/flatten-color-palette.ts"
41+
},
3842
"./defaultTheme": {
3943
"require": "./src/compat/default-theme.cts",
4044
"import": "./src/compat/default-theme.ts"
@@ -99,6 +103,10 @@
99103
"require": "./dist/flatten-color-palette.js",
100104
"import": "./dist/flatten-color-palette.mjs"
101105
},
106+
"./lib/util/flattenColorPalette.js": {
107+
"require": "./dist/flatten-color-palette.js",
108+
"import": "./dist/flatten-color-palette.mjs"
109+
},
102110
"./package.json": "./package.json",
103111
"./index.css": "./index.css",
104112
"./index": "./index.css",

0 commit comments

Comments
 (0)