migrate() — tailwindcss Function Reference
Architecture documentation for the migrate() function in migrate.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 49deb237_8387_627a_1b1d_a2683b818ef3["migrate()"] d42d902c_ed1a_408e_b745_e2810d7e1b4b["migrateAtApply()"] d42d902c_ed1a_408e_b745_e2810d7e1b4b -->|calls| 49deb237_8387_627a_1b1d_a2683b818ef3 871e666f_c351_cfe2_299d_26df411fa6c5["migrateContents()"] 49deb237_8387_627a_1b1d_a2683b818ef3 -->|calls| 871e666f_c351_cfe2_299d_26df411fa6c5 style 49deb237_8387_627a_1b1d_a2683b818ef3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-upgrade/src/codemods/template/migrate.ts lines 122–130
export async function migrate(designSystem: DesignSystem, userConfig: Config | null, file: string) {
let fullPath = path.isAbsolute(file) ? file : path.resolve(process.cwd(), file)
let contents = await fs.readFile(fullPath, 'utf-8')
await fs.writeFile(
fullPath,
await migrateContents(designSystem, userConfig, contents, extname(file)),
)
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does migrate() do?
migrate() is a function in the tailwindcss codebase.
What does migrate() call?
migrate() calls 1 function(s): migrateContents.
What calls migrate()?
migrate() is called by 1 function(s): migrateAtApply.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free