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
  cfbc0a63_75ff_e07f_f568_e9b2cd8c59dc["migrate()"]
  150ae0b2_d69c_0142_62f5_7237ef3b13df["index.test.ts"]
  cfbc0a63_75ff_e07f_f568_e9b2cd8c59dc -->|defined in| 150ae0b2_d69c_0142_62f5_7237ef3b13df
  57b32011_484f_ff44_500c_44534507fe0b["migrate()"]
  cfbc0a63_75ff_e07f_f568_e9b2cd8c59dc -->|calls| 57b32011_484f_ff44_500c_44534507fe0b
  1be562b7_fe23_7e22_03ec_31b3d101e5e5["migrateContents()"]
  cfbc0a63_75ff_e07f_f568_e9b2cd8c59dc -->|calls| 1be562b7_fe23_7e22_03ec_31b3d101e5e5
  bbbe5224_64f9_042a_8b85_2e287c62c4d1["sortBuckets()"]
  cfbc0a63_75ff_e07f_f568_e9b2cd8c59dc -->|calls| bbbe5224_64f9_042a_8b85_2e287c62c4d1
  9f6b611c_7303_0355_74f7_03283a44c6d0["formatNodes()"]
  cfbc0a63_75ff_e07f_f568_e9b2cd8c59dc -->|calls| 9f6b611c_7303_0355_74f7_03283a44c6d0
  style cfbc0a63_75ff_e07f_f568_e9b2cd8c59dc 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)
}

Subdomains

Frequently Asked Questions

What does migrate() do?
migrate() is a function in the tailwindcss codebase, defined in packages/@tailwindcss-upgrade/src/index.test.ts.
Where is migrate() defined?
migrate() is defined in packages/@tailwindcss-upgrade/src/index.test.ts at line 29.
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