@mpxjs/webpack-plugin 2.7.50-alpha.0 → 2.7.50-alpha.1
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.
|
@@ -2007,14 +2007,14 @@ function processAtMode (el) {
|
|
|
2007
2007
|
if (defineMode === 'noMode' || defineMode === mode) {
|
|
2008
2008
|
// 命中 env 规则(没有定义env 或者定义的envArr包含当前env)
|
|
2009
2009
|
if (!defineEnvArr.length || defineEnvArr.includes(env)) {
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
if (
|
|
2010
|
+
if (!replacedAttrName) {
|
|
2011
|
+
// 若defineMode 为 noMode,则不论是element,还是attr,都需要经过规则转换
|
|
2012
|
+
if (defineMode !== 'noMode') {
|
|
2013
2013
|
el._atModeStatus = 'match'
|
|
2014
|
-
} else {
|
|
2015
|
-
// 如果命中了指定的mode,则先存在el上,等跑完转换后再挂回去
|
|
2016
|
-
el.noTransAttrs ? el.noTransAttrs.push(processedAttr) : el.noTransAttrs = [processedAttr]
|
|
2017
2014
|
}
|
|
2015
|
+
} else {
|
|
2016
|
+
// 如果命中了指定的mode,则先存在el上,等跑完转换后再挂回去
|
|
2017
|
+
el.noTransAttrs ? el.noTransAttrs.push(processedAttr) : el.noTransAttrs = [processedAttr]
|
|
2018
2018
|
}
|
|
2019
2019
|
// 完成匹配,直接退出
|
|
2020
2020
|
break
|
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.1",
|
|
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": "58fa63ed6dd39f6d01186697a24571c4ef14e4f0"
|
|
84
84
|
}
|