File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
packages/tailwindcss-patch/src/core Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,22 @@ export async function processTailwindcss(options: { cwd?: string; config?: strin
17
17
if ( ! ( typeof options . config === 'string' && path . isAbsolute ( options . config ) ) ) {
18
18
const moduleName = 'tailwind'
19
19
const result = await lilconfig ( 'tailwindcss' , {
20
- searchPlaces : [ `${ moduleName } .config.js` , `${ moduleName } .config.cjs` ] ,
20
+ searchPlaces : [
21
+ `${ moduleName } .config.js` ,
22
+ `${ moduleName } .config.cjs` ,
23
+ `${ moduleName } .config.mjs` ,
24
+ `${ moduleName } .config.ts` ,
25
+ `${ moduleName } .config.cts` ,
26
+ `${ moduleName } .config.mts`
27
+ ] ,
21
28
loaders : {
22
29
// 默认支持 js 和 cjs 2种格式
23
30
'.js' : jiti ,
24
31
'.cjs' : jiti ,
32
+ '.mjs' : jiti ,
25
33
'.ts' : jiti ,
26
- '.mjs' : jiti
34
+ '.cts' : jiti ,
35
+ '.mts' : jiti
27
36
}
28
37
} ) . search ( options . cwd )
29
38
if ( ! result ) {
You can’t perform that action at this time.
0 commit comments