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 74a61e0c_fc6d_ca6e_70cb_582ad1c4ad3c["migrate()"] 750de917_02a7_4958_9148_77485207558a["migrateMissingLayers()"] 74a61e0c_fc6d_ca6e_70cb_582ad1c4ad3c -->|calls| 750de917_02a7_4958_9148_77485207558a f8da4c29_335c_9511_8ded_97963c8de7d7["sortBuckets()"] 74a61e0c_fc6d_ca6e_70cb_582ad1c4ad3c -->|calls| f8da4c29_335c_9511_8ded_97963c8de7d7 5d3451a8_5d2d_de8f_920f_deec034713bd["formatNodes()"] 74a61e0c_fc6d_ca6e_70cb_582ad1c4ad3c -->|calls| 5d3451a8_5d2d_de8f_920f_deec034713bd style 74a61e0c_fc6d_ca6e_70cb_582ad1c4ad3c 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.
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