@mpxjs/webpack-plugin 2.7.50-alpha.1 → 2.7.50-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2016,11 +2016,14 @@ function processAtMode (el) {
|
|
|
2016
2016
|
// 如果命中了指定的mode,则先存在el上,等跑完转换后再挂回去
|
|
2017
2017
|
el.noTransAttrs ? el.noTransAttrs.push(processedAttr) : el.noTransAttrs = [processedAttr]
|
|
2018
2018
|
}
|
|
2019
|
-
//
|
|
2019
|
+
// 命中mode,命中env,完成匹配,直接退出
|
|
2020
2020
|
break
|
|
2021
|
+
} else if (!replacedAttrName) {
|
|
2022
|
+
// 命中mode规则,没有命中当前env规则,设置为 'mismatch'
|
|
2023
|
+
el._atModeStatus = 'mismatch'
|
|
2021
2024
|
}
|
|
2022
2025
|
} else if (!replacedAttrName) {
|
|
2023
|
-
//
|
|
2026
|
+
// 没有命中当前mode规则,设置为 'mismatch'
|
|
2024
2027
|
el._atModeStatus = 'mismatch'
|
|
2025
2028
|
} else {
|
|
2026
2029
|
// 如果没命中指定的mode,则该属性删除
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mpxjs/webpack-plugin",
|
|
3
|
-
"version": "2.7.50-alpha.
|
|
3
|
+
"version": "2.7.50-alpha.2",
|
|
4
4
|
"description": "mpx compile core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mpx"
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"engines": {
|
|
81
81
|
"node": ">=14.14.0"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "1f11736feeec1ad1eace01c32f8b70b296a6896b"
|
|
84
84
|
}
|