Home / Function/ migrate() — tailwindcss Function Reference

migrate() — tailwindcss Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  1b01e45d_833e_6383_5278_3a005469d916["migrate()"]
  d7062e64_c90e_b85d_7355_db6c443e36d0["migrate()"]
  d7062e64_c90e_b85d_7355_db6c443e36d0 -->|calls| 1b01e45d_833e_6383_5278_3a005469d916
  b1aa79a5_bad0_a9e2_1c70_8e14489ee8dd["migrateContents()"]
  1b01e45d_833e_6383_5278_3a005469d916 -->|calls| b1aa79a5_bad0_a9e2_1c70_8e14489ee8dd
  style 1b01e45d_833e_6383_5278_3a005469d916 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)
}

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