File tree Expand file tree Collapse file tree
packages/weapp-tailwindcss/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import type { TailwindcssPatcherOptions } from 'tailwindcss-patch'
1+ import type { TailwindcssUserConfig } from 'tailwindcss-patch'
22import type {
33 ICustomAttributes ,
44 ICustomAttributesEntities ,
@@ -115,26 +115,16 @@ export function getCompilerContext(opts?: UserDefinedOptions): InternalUserDefin
115115 basedir : tailwindcssBasedir ,
116116 cacheDir : appType === 'mpx' ? 'node_modules/tailwindcss-patch/.cache' : undefined ,
117117 supportCustomLengthUnitsPatch : supportCustomLengthUnitsPatch ?? true ,
118- tailwindcss,
119- tailwindcssPatcherOptions : defuOverrideArray < TailwindcssPatcherOptions , TailwindcssPatcherOptions [ ] > (
120- tailwindcssPatcherOptions ,
118+ tailwindcss : defuOverrideArray < TailwindcssUserConfig , TailwindcssUserConfig [ ] > (
119+ tailwindcss ,
121120 {
122- patch : {
123- // cwd: tailwindcssBasedir,
124- tailwindcss : {
125- // @ts -ignore
126- // cwd: tailwindcssBasedir,
127- // v3: {
128- // cwd: tailwindcssBasedir,
129- // },
130- v4 : {
131- base : tailwindcssBasedir ,
132- cssEntries,
133- } ,
134- } ,
121+ v4 : {
122+ base : tailwindcssBasedir ,
123+ cssEntries,
135124 } ,
136125 } ,
137126 ) ,
127+ tailwindcssPatcherOptions,
138128 } ,
139129 )
140130 ctx . setMangleRuntimeSet = setMangleRuntimeSet
Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ const customAttributes = {
205205 /**
206206 * @version `^4.2.6`
207207 * @group 0.重要配置
208- * @description tailwindcss@4 的入口 css 的位置,假如不配置这个选项, 就无法加载自定义插件
208+ * @description tailwindcss@4 的入口 css 的位置,假如不配置这个选项, 就无法加载自定义插件。等价于传入 tailwindcss.v4.cssEntries
209209 */
210210 cssEntries ?: string [ ]
211211 /**
You can’t perform that action at this time.
0 commit comments