migrate() — tailwindcss Function Reference
Architecture documentation for the migrate() function in migrate-missing-layers.test.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 2c0c1b71_9ba4_613a_e0ea_df6593217df6["migrate()"] 961d377c_755d_e488_5737_dfddc91c3ee6["migrate-missing-layers.test.ts"] 2c0c1b71_9ba4_613a_e0ea_df6593217df6 -->|defined in| 961d377c_755d_e488_5737_dfddc91c3ee6 59c8138d_8a81_f8cc_a0c2_1066cae6363b["migrateMissingLayers()"] 2c0c1b71_9ba4_613a_e0ea_df6593217df6 -->|calls| 59c8138d_8a81_f8cc_a0c2_1066cae6363b bbbe5224_64f9_042a_8b85_2e287c62c4d1["sortBuckets()"] 2c0c1b71_9ba4_613a_e0ea_df6593217df6 -->|calls| bbbe5224_64f9_042a_8b85_2e287c62c4d1 9f6b611c_7303_0355_74f7_03283a44c6d0["formatNodes()"] 2c0c1b71_9ba4_613a_e0ea_df6593217df6 -->|calls| 9f6b611c_7303_0355_74f7_03283a44c6d0 style 2c0c1b71_9ba4_613a_e0ea_df6593217df6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-upgrade/src/codemods/css/migrate-missing-layers.test.ts lines 10–17
function migrate(input: string) {
return postcss()
.use(migrateMissingLayers())
.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, defined in packages/@tailwindcss-upgrade/src/codemods/css/migrate-missing-layers.test.ts.
Where is migrate() defined?
migrate() is defined in packages/@tailwindcss-upgrade/src/codemods/css/migrate-missing-layers.test.ts at line 10.
What does migrate() call?
migrate() calls 3 function(s): formatNodes, migrateMissingLayers, sortBuckets.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free