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