diff --git a/package.json b/package.json index b842cfb..b9cc402 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dcasia/mini-program-tailwind-webpack-plugin", - "version": "1.5.3", + "version": "1.5.4", "description": "让你的小程序用上原汁原味的 Tailwind/Windi CSS", "keywords": [ "mini-program", diff --git a/src/taro/webpack-plugin.ts b/src/taro/webpack-plugin.ts index 911e694..ebed3f6 100644 --- a/src/taro/webpack-plugin.ts +++ b/src/taro/webpack-plugin.ts @@ -8,7 +8,7 @@ import { regExpJS } from '../utilities' const frameworkModuleCharacteristics = { [ TaroFramework.React ]: [ '.jsx', '.tsx' ], [ TaroFramework.Vue2 ]: [ 'type=template' ], - [ TaroFramework.Vue3 ]: [ 'type=template', 'type=script&setup=true' ], + [ TaroFramework.Vue3 ]: [ 'type=template', 'setup=true' ], [ TaroFramework.Preact ]: [ '.jsx', '.tsx' ], } @@ -57,6 +57,9 @@ export default class TaroVNodeTailwindWebpackPlugin implements WebpackPluginInst for (const module of Array.from(modules)) { + // @ts-ignore + console.log(module?._source?._valueAsString) + for (const charc of this.moduleCharcs) { // @ts-ignore