Home / Function/ migrate() — tailwindcss Function Reference

migrate() — tailwindcss Function Reference

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

Function typescript OxideCore Extractor calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  0eb8d194_58f1_5236_96be_b255e0fee6a5["migrate()"]
  1384a7a2_8488_cf52_f804_aafd8b87a44b["migrate()"]
  1384a7a2_8488_cf52_f804_aafd8b87a44b -->|calls| 0eb8d194_58f1_5236_96be_b255e0fee6a5
  ccdccd11_44d9_ea22_dded_25c5b1cc55bb["migrateContents()"]
  0eb8d194_58f1_5236_96be_b255e0fee6a5 -->|calls| ccdccd11_44d9_ea22_dded_25c5b1cc55bb
  style 0eb8d194_58f1_5236_96be_b255e0fee6a5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/@tailwindcss-upgrade/src/codemods/css/migrate.ts lines 25–33

export async function migrate(stylesheet: Stylesheet, options: MigrateOptions) {
  if (!stylesheet.file) {
    throw new Error('Cannot migrate a stylesheet without a file path')
  }

  if (!stylesheet.canMigrate) return

  await migrateContents(stylesheet, options)
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does migrate() do?
migrate() is a function in the tailwindcss codebase.
What does migrate() call?
migrate() calls 1 function(s): migrateContents.
What calls migrate()?
migrate() is called by 1 function(s): migrate.

Analyze Your Own Codebase

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

Try Supermodel Free