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
  1384a7a2_8488_cf52_f804_aafd8b87a44b["migrate()"]
  0eb8d194_58f1_5236_96be_b255e0fee6a5["migrate()"]
  1384a7a2_8488_cf52_f804_aafd8b87a44b -->|calls| 0eb8d194_58f1_5236_96be_b255e0fee6a5
  ccdccd11_44d9_ea22_dded_25c5b1cc55bb["migrateContents()"]
  1384a7a2_8488_cf52_f804_aafd8b87a44b -->|calls| ccdccd11_44d9_ea22_dded_25c5b1cc55bb
  e043f45b_85cc_a577_dfe0_8d4c73200c27["sortBuckets()"]
  1384a7a2_8488_cf52_f804_aafd8b87a44b -->|calls| e043f45b_85cc_a577_dfe0_8d4c73200c27
  a342f353_2ecc_4db5_ac10_390f5d309eea["formatNodes()"]
  1384a7a2_8488_cf52_f804_aafd8b87a44b -->|calls| a342f353_2ecc_4db5_ac10_390f5d309eea
  style 1384a7a2_8488_cf52_f804_aafd8b87a44b 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