Skip to content

Commit ef40137

Browse files
committed
Put corner-shape utilities behind a feature flag
1 parent 3b23555 commit ef40137

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export const enableContainerSizeUtility = process.env.FEATURES_ENV !== 'stable'
2+
export const enableCornerShapeUtilities = process.env.FEATURES_ENV !== 'stable'

packages/tailwindcss/src/utilities.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
} from './ast'
1313
import type { Candidate, CandidateModifier, NamedUtilityValue } from './candidate'
1414
import type { DesignSystem } from './design-system'
15-
import { enableContainerSizeUtility } from './feature-flags'
15+
import { enableContainerSizeUtility, enableCornerShapeUtilities } from './feature-flags'
1616
import type { Theme, ThemeKey } from './theme'
1717
import { compareBreakpoints } from './utils/compare-breakpoints'
1818
import { DefaultMap } from './utils/default-map'
@@ -2199,7 +2199,7 @@ export function createUtilities(theme: Theme) {
21992199
}
22002200
}
22012201

2202-
{
2202+
if (enableCornerShapeUtilities) {
22032203
// corner-shape
22042204
let shapes = ['round', 'scoop', 'bevel', 'notch', 'square', 'squircle']
22052205

0 commit comments

Comments
 (0)