migrate() — tailwindcss Function Reference
Architecture documentation for the migrate() function in migrate.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 57b32011_484f_ff44_500c_44534507fe0b["migrate()"] 9e542b1f_db4d_cc7b_b37d_1324d5719263["migrate.ts"] 57b32011_484f_ff44_500c_44534507fe0b -->|defined in| 9e542b1f_db4d_cc7b_b37d_1324d5719263 cfbc0a63_75ff_e07f_f568_e9b2cd8c59dc["migrate()"] cfbc0a63_75ff_e07f_f568_e9b2cd8c59dc -->|calls| 57b32011_484f_ff44_500c_44534507fe0b 1be562b7_fe23_7e22_03ec_31b3d101e5e5["migrateContents()"] 57b32011_484f_ff44_500c_44534507fe0b -->|calls| 1be562b7_fe23_7e22_03ec_31b3d101e5e5 style 57b32011_484f_ff44_500c_44534507fe0b 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