File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
packages/@tailwindcss-upgrade/src/codemods Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change 1- import { __unstable__loadDesignSystem } from '@tailwindcss/node'
21import dedent from 'dedent'
32import postcss from 'postcss'
43import { expect , it } from 'vitest'
5- import type { UserConfig } from '../../../tailwindcss/src/compat/config/types'
64import { migrateImport } from './migrate-import'
75
86const css = dedent
97
10- async function migrate ( input : string , userConfig : UserConfig = { } ) {
8+ async function migrate ( input : string ) {
119 return postcss ( )
12- . use (
13- migrateImport ( {
14- designSystem : await __unstable__loadDesignSystem ( `@import 'tailwindcss';` , {
15- base : __dirname ,
16- } ) ,
17- userConfig,
18- } ) ,
19- )
10+ . use ( migrateImport ( ) )
2011 . process ( input , { from : expect . getState ( ) . testPath } )
2112 . then ( ( result ) => result . css )
2213}
You can’t perform that action at this time.
0 commit comments