Skip to content

Commit 7159256

Browse files
committed
Revert unnecessary changes in utilities.ts
1 parent dd2bea6 commit 7159256

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

packages/tailwindcss/src/utilities.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -189,21 +189,9 @@ export function withAlpha(value: string, alpha: string): string {
189189
return value
190190
}
191191

192-
// prefix the color-mix function with an internal /* tw:optimize */ comment so that
193-
// only this will be optimized later
194192
return `color-mix(in oklab, ${value} ${alpha}, transparent)`
195193
}
196194

197-
export const optimizeCommentPattern = /^\s*\/\*\s*tw:optimize\s*\*\/\s/;
198-
199-
export function containsOptimizeComment(value: string): boolean {
200-
return optimizeCommentPattern.test(value);
201-
}
202-
203-
export function removeOptimizeComment(value: string): string {
204-
return value.replace(optimizeCommentPattern, '');
205-
}
206-
207195
/**
208196
* Apply opacity to a color using `color-mix`.
209197
*/

0 commit comments

Comments
 (0)