@mpxjs/webpack-plugin 2.7.50-alpha.2 → 2.7.50-alpha.3

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.
@@ -1957,7 +1957,7 @@ function postProcessTemplate (el) {
1957
1957
  }
1958
1958
  }
1959
1959
 
1960
- const isValidMode = makeMap('wx,ali,swan,tt,qq,web,qa,jd,dd')
1960
+ const isValidMode = makeMap('wx,ali,swan,tt,qq,web,qa,jd,dd,noMode')
1961
1961
 
1962
1962
  const wrapRE = /^\((.*)\)$/
1963
1963
 
@@ -1996,7 +1996,7 @@ function processAtMode (el) {
1996
1996
  conditionMap.set(key, arr.slice(1))
1997
1997
  })
1998
1998
 
1999
- const modeArr = Object.keys(conditionMap)
1999
+ const modeArr = [...conditionMap.keys()]
2000
2000
 
2001
2001
  if (modeArr.every(i => isValidMode(i))) {
2002
2002
  const attrValue = getAndRemoveAttr(el, attrName).val
@@ -2007,6 +2007,7 @@ 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
+ el._atModeStatus = ''
2010
2011
  if (!replacedAttrName) {
2011
2012
  // 若defineMode 为 noMode,则不论是element,还是attr,都需要经过规则转换
2012
2013
  if (defineMode !== 'noMode') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/webpack-plugin",
3
- "version": "2.7.50-alpha.2",
3
+ "version": "2.7.50-alpha.3",
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": "1f11736feeec1ad1eace01c32f8b70b296a6896b"
83
+ "gitHead": "149081b776c5684bb60a2e26f6e3e0ecb5e60a66"
84
84
  }