migrate() — tailwindcss Function Reference
Architecture documentation for the migrate() function in migrate-modernize-arbitrary-values.test.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 3f74b719_fd29_d4e2_549d_3dc6c9ee2afc["migrate()"] ee1d35bf_4335_a131_a900_1f9f4b90a0e1["migrate-modernize-arbitrary-values.test.ts"] 3f74b719_fd29_d4e2_549d_3dc6c9ee2afc -->|defined in| ee1d35bf_4335_a131_a900_1f9f4b90a0e1 style 3f74b719_fd29_d4e2_549d_3dc6c9ee2afc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-upgrade/src/codemods/template/migrate-modernize-arbitrary-values.test.ts lines 14–27
function migrate(designSystem: DesignSystem, userConfig: UserConfig | null, rawCandidate: string) {
for (let migration of [
migrateEmptyArbitraryValues,
migratePrefix,
migrateModernizeArbitraryValues,
migrateArbitraryVariants,
(designSystem: DesignSystem, _: UserConfig | null, rawCandidate: string) => {
return designSystem.canonicalizeCandidates([rawCandidate]).pop() ?? rawCandidate
},
]) {
rawCandidate = migration(designSystem, userConfig, rawCandidate)
}
return rawCandidate
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does migrate() do?
migrate() is a function in the tailwindcss codebase, defined in packages/@tailwindcss-upgrade/src/codemods/template/migrate-modernize-arbitrary-values.test.ts.
Where is migrate() defined?
migrate() is defined in packages/@tailwindcss-upgrade/src/codemods/template/migrate-modernize-arbitrary-values.test.ts at line 14.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free