migrate() — tailwindcss Function Reference
Architecture documentation for the migrate() function in migrate.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 8c052e24_af25_4cf2_83e1_f15cf8962091["migrate()"] 67f80607_3a88_f275_79a1_b9557100d939["migrate.ts"] 8c052e24_af25_4cf2_83e1_f15cf8962091 -->|defined in| 67f80607_3a88_f275_79a1_b9557100d939 e2606484_06bf_1985_5729_1134a15ad1e6["migrate()"] e2606484_06bf_1985_5729_1134a15ad1e6 -->|calls| 8c052e24_af25_4cf2_83e1_f15cf8962091 9ebd84f7_07bc_9b19_28a7_8bd93119c37e["migrateContents()"] 8c052e24_af25_4cf2_83e1_f15cf8962091 -->|calls| 9ebd84f7_07bc_9b19_28a7_8bd93119c37e style 8c052e24_af25_4cf2_83e1_f15cf8962091 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-upgrade/src/codemods/css/migrate.ts lines 25–33
export async function migrate(stylesheet: Stylesheet, options: MigrateOptions) {
if (!stylesheet.file) {
throw new Error('Cannot migrate a stylesheet without a file path')
}
if (!stylesheet.canMigrate) return
await migrateContents(stylesheet, options)
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does migrate() do?
migrate() is a function in the tailwindcss codebase, defined in packages/@tailwindcss-upgrade/src/codemods/css/migrate.ts.
Where is migrate() defined?
migrate() is defined in packages/@tailwindcss-upgrade/src/codemods/css/migrate.ts at line 25.
What does migrate() call?
migrate() calls 1 function(s): migrateContents.
What calls migrate()?
migrate() is called by 1 function(s): migrate.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free