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 c8a04bfa_6610_ee54_24b2_9c037c187fbb["migrate()"] e9339eff_729a_5742_514d_a48864b498f7["migrateTailwindDirectives()"] c8a04bfa_6610_ee54_24b2_9c037c187fbb -->|calls| e9339eff_729a_5742_514d_a48864b498f7 e043f45b_85cc_a577_dfe0_8d4c73200c27["sortBuckets()"] c8a04bfa_6610_ee54_24b2_9c037c187fbb -->|calls| e043f45b_85cc_a577_dfe0_8d4c73200c27 a342f353_2ecc_4db5_ac10_390f5d309eea["formatNodes()"] c8a04bfa_6610_ee54_24b2_9c037c187fbb -->|calls| a342f353_2ecc_4db5_ac10_390f5d309eea style c8a04bfa_6610_ee54_24b2_9c037c187fbb 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