migrate() — tailwindcss Function Reference
Architecture documentation for the migrate() function in migrate-tailwind-directives.test.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD b614008a_e4aa_722c_910a_3c58e4d28cef["migrate()"] 2aaf5161_ac26_f74e_9d1a_9d3e64f884b9["migrateTailwindDirectives()"] b614008a_e4aa_722c_910a_3c58e4d28cef -->|calls| 2aaf5161_ac26_f74e_9d1a_9d3e64f884b9 f8da4c29_335c_9511_8ded_97963c8de7d7["sortBuckets()"] b614008a_e4aa_722c_910a_3c58e4d28cef -->|calls| f8da4c29_335c_9511_8ded_97963c8de7d7 5d3451a8_5d2d_de8f_920f_deec034713bd["formatNodes()"] b614008a_e4aa_722c_910a_3c58e4d28cef -->|calls| 5d3451a8_5d2d_de8f_920f_deec034713bd style b614008a_e4aa_722c_910a_3c58e4d28cef fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-upgrade/src/codemods/css/migrate-tailwind-directives.test.ts lines 10–17
function migrate(input: string, options: { newPrefix: string | null } = { newPrefix: null }) {
return postcss()
.use(migrateTailwindDirectives(options))
.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, migrateTailwindDirectives, sortBuckets.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free