Skip to content

Commit f29f8f4

Browse files
committed
clone the string[] by using a simple slice
Strings are immutable, so the only thing we're cloning here is the array itself.
1 parent b20a325 commit f29f8f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/tailwindcss/src/compat/apply-config-to-theme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export function keyPathToCssProperty(path: string[]) {
153153
// The legacy container component config should not be included in the Theme
154154
if (path[0] === 'container') return null
155155

156-
path = structuredClone(path)
156+
path = path.slice()
157157

158158
if (path[0] === 'animation') path[0] = 'animate'
159159
if (path[0] === 'aspectRatio') path[0] = 'aspect'

0 commit comments

Comments
 (0)