migrate() — tailwindcss Function Reference
Architecture documentation for the migrate() function in migrate-preflight.test.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 51773c2e_bb3d_63e0_1017_2196c25f1acb["migrate()"] fe1ae328_7455_13dc_ecbe_a4e848ee9ea0["migratePreflight()"] 51773c2e_bb3d_63e0_1017_2196c25f1acb -->|calls| fe1ae328_7455_13dc_ecbe_a4e848ee9ea0 e043f45b_85cc_a577_dfe0_8d4c73200c27["sortBuckets()"] 51773c2e_bb3d_63e0_1017_2196c25f1acb -->|calls| e043f45b_85cc_a577_dfe0_8d4c73200c27 a342f353_2ecc_4db5_ac10_390f5d309eea["formatNodes()"] 51773c2e_bb3d_63e0_1017_2196c25f1acb -->|calls| a342f353_2ecc_4db5_ac10_390f5d309eea style 51773c2e_bb3d_63e0_1017_2196c25f1acb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-upgrade/src/codemods/css/migrate-preflight.test.ts lines 13–27
async function migrate(input: string) {
let designSystem = await __unstable__loadDesignSystem(
css`
@import 'tailwindcss';
`,
{ base: __dirname },
)
return postcss()
.use(migratePreflight({ designSystem }))
.use(sortBuckets())
.use(formatNodes())
.process(input, { from: expect.getState().testPath })
.then((result) => result.css)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does migrate() do?
migrate() is a function in the tailwindcss codebase.
What does migrate() call?
migrate() calls 3 function(s): formatNodes, migratePreflight, sortBuckets.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free