@dcasia/mini-program-tailwind-webpack-plugin
Advanced tools
Comparing version 1.3.4-beta2 to 1.3.4-beta3
@@ -217,3 +217,5 @@ 'use strict'; | ||
var targetClassFieldName = classFieldName[framework] || []; | ||
return targetClassFieldName.includes(path.node.name); | ||
var key = path.get('key'); | ||
var keyName = key.isIdentifier() && key.node.name; | ||
return targetClassFieldName.includes(keyName); | ||
} | ||
@@ -249,5 +251,6 @@ function recordClassNameChanges(rawContent, newContent) { | ||
*/ | ||
Identifier: { | ||
ObjectProperty: { | ||
enter: function (path, state) { | ||
if (isIdentifierTheClassField(path, state.opts.framework)) { | ||
console.log('enter'); | ||
isVisitingClassNameField = true; | ||
@@ -258,2 +261,3 @@ } | ||
if (isIdentifierTheClassField(path, state.opts.framework)) { | ||
console.log('exit'); | ||
isVisitingClassNameField = false; | ||
@@ -260,0 +264,0 @@ } |
{ | ||
"name": "@dcasia/mini-program-tailwind-webpack-plugin", | ||
"version": "1.3.4beta2", | ||
"version": "1.3.4beta3", | ||
"description": "让你的小程序用上原汁原味的 Tailwind/Windi CSS", | ||
@@ -5,0 +5,0 @@ "keywords": ["miniprogram", "mini-program", "tailwindcss", "windicss", "wechat", "taro", "css", "postcss"], |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
55885
1032