Skip to content

Commit

Permalink
Fix match rule for Vue setup script (#63)
Browse files Browse the repository at this point in the history
* fix match rule for Vue setup script

* bump version to 1.5.4
  • Loading branch information
ItsRyanWu authored Aug 21, 2022
1 parent 1a99cf4 commit 396372d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
5 changes: 4 additions & 1 deletion src/taro/webpack-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' ],
}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 396372d

Please sign in to comment.