Home / Function/ migrate() — tailwindcss Function Reference

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
  b2462a9a_300b_e7ab_7d56_790bc72f6c28["migrate()"]
  fb30d75d_33fe_1bdc_7044_fd6d2cc1b187["format-nodes.test.ts"]
  b2462a9a_300b_e7ab_7d56_790bc72f6c28 -->|defined in| fb30d75d_33fe_1bdc_7044_fd6d2cc1b187
  d2e3cffb_c637_4513_a442_e3ef728c1adb["markPretty()"]
  b2462a9a_300b_e7ab_7d56_790bc72f6c28 -->|calls| d2e3cffb_c637_4513_a442_e3ef728c1adb
  92a12a9f_b36d_4c66_d885_e04224081f21["sortBuckets()"]
  b2462a9a_300b_e7ab_7d56_790bc72f6c28 -->|calls| 92a12a9f_b36d_4c66_d885_e04224081f21
  729a086c_18ec_2750_83e5_bdd730f8fa5e["formatNodes()"]
  b2462a9a_300b_e7ab_7d56_790bc72f6c28 -->|calls| 729a086c_18ec_2750_83e5_bdd730f8fa5e
  style b2462a9a_300b_e7ab_7d56_790bc72f6c28 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)
}

Subdomains

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