You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading from tailwind 1.x to 2.x in a project (a nuxt application), our dev server starting times went from ~0.50s to ~1.3s. After some research, we found that the problems are vue components using @apply.
Our profiling looks like this
Most of the time is spent on the buildUtilityMap function. It's taking more than 100ms per component.
After analyzing the function, it looks like it does two things:
Generate the utilityMap for the lookupTree
Generate the utilityMap for the css defined by the component
I think we could follow the same approach used on #3032 and memoize the part of the function that won't change over time (the utilityMap for the lookupTree)
I will try to create a PR
The text was updated successfully, but these errors were encountered:
Describe the problem:
After upgrading from tailwind 1.x to 2.x in a project (a nuxt application), our dev server starting times went from ~0.50s to ~1.3s. After some research, we found that the problems are vue components using
@apply
.Our profiling looks like this
Most of the time is spent on the
buildUtilityMap
function. It's taking more than 100ms per component.After analyzing the function, it looks like it does two things:
I think we could follow the same approach used on #3032 and memoize the part of the function that won't change over time (the utilityMap for the lookupTree)
I will try to create a PR
The text was updated successfully, but these errors were encountered: