migrate() — tailwindcss Function Reference
Architecture documentation for the migrate() function in migrate-at-apply.test.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 651d2af1_0a44_999a_c676_a66215d0923e["migrate()"] 03d4ca08_7ec2_689c_47d8_1be20f931aa5["migrateAtApply()"] 651d2af1_0a44_999a_c676_a66215d0923e -->|calls| 03d4ca08_7ec2_689c_47d8_1be20f931aa5 style 651d2af1_0a44_999a_c676_a66215d0923e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-upgrade/src/codemods/css/migrate-at-apply.test.ts lines 12–34
async function migrate(input: string, config: Config = {}) {
let designSystem = await __unstable__loadDesignSystem(
css`
@import 'tailwindcss';
/* TODO(perf): Only here to speed up the tests */
@theme {
--*: initial;
}
`,
{ base: __dirname },
)
return postcss()
.use(
migrateAtApply({
designSystem,
userConfig: config,
}),
)
.process(input, { from: expect.getState().testPath })
.then((result) => result.css)
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does migrate() do?
migrate() is a function in the tailwindcss codebase.
What does migrate() call?
migrate() calls 1 function(s): migrateAtApply.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free