Home / Function/ migrate() — tailwindcss Function Reference

migrate() — tailwindcss Function Reference

Architecture documentation for the migrate() function in index.test.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  d7062e64_c90e_b85d_7355_db6c443e36d0["migrate()"]
  1b01e45d_833e_6383_5278_3a005469d916["migrate()"]
  d7062e64_c90e_b85d_7355_db6c443e36d0 -->|calls| 1b01e45d_833e_6383_5278_3a005469d916
  b1aa79a5_bad0_a9e2_1c70_8e14489ee8dd["migrateContents()"]
  d7062e64_c90e_b85d_7355_db6c443e36d0 -->|calls| b1aa79a5_bad0_a9e2_1c70_8e14489ee8dd
  f8da4c29_335c_9511_8ded_97963c8de7d7["sortBuckets()"]
  d7062e64_c90e_b85d_7355_db6c443e36d0 -->|calls| f8da4c29_335c_9511_8ded_97963c8de7d7
  5d3451a8_5d2d_de8f_920f_deec034713bd["formatNodes()"]
  d7062e64_c90e_b85d_7355_db6c443e36d0 -->|calls| 5d3451a8_5d2d_de8f_920f_deec034713bd
  style d7062e64_c90e_b85d_7355_db6c443e36d0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/@tailwindcss-upgrade/src/index.test.ts lines 29–33

function migrate(input: string, config: any) {
  return migrateContents(input, config, expect.getState().testPath)
    .then((result) => postcss([sortBuckets(), formatNodes()]).process(result.root, result.opts))
    .then((result) => result.css)
}

Domain

Subdomains

Frequently Asked Questions

What does migrate() do?
migrate() is a function in the tailwindcss codebase.
What does migrate() call?
migrate() calls 4 function(s): formatNodes, migrate, migrateContents, sortBuckets.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free