migrate() — tailwindcss Function Reference
Architecture documentation for the migrate() function in migrate-media-screen.test.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD e693c615_04b0_46f3_b602_3e46d121fcb0["migrate()"] 677923aa_e54a_b77d_277a_4252209aff18["migrateMediaScreen()"] e693c615_04b0_46f3_b602_3e46d121fcb0 -->|calls| 677923aa_e54a_b77d_277a_4252209aff18 f8da4c29_335c_9511_8ded_97963c8de7d7["sortBuckets()"] e693c615_04b0_46f3_b602_3e46d121fcb0 -->|calls| f8da4c29_335c_9511_8ded_97963c8de7d7 5d3451a8_5d2d_de8f_920f_deec034713bd["formatNodes()"] e693c615_04b0_46f3_b602_3e46d121fcb0 -->|calls| 5d3451a8_5d2d_de8f_920f_deec034713bd style e693c615_04b0_46f3_b602_3e46d121fcb0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-upgrade/src/codemods/css/migrate-media-screen.test.ts lines 12–26
async function migrate(input: string, userConfig: UserConfig = {}) {
return postcss()
.use(
migrateMediaScreen({
designSystem: await __unstable__loadDesignSystem(`@import 'tailwindcss';`, {
base: __dirname,
}),
userConfig,
}),
)
.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, migrateMediaScreen, sortBuckets.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free