@mpxjs/webpack-plugin 2.9.39 → 2.9.40

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.
@@ -964,8 +964,12 @@ function processComponentIs (el, options) {
964
964
  return
965
965
  }
966
966
 
967
- const isInRange = makeMap(getAndRemoveAttr(el, 'range').val || '')
968
- el.components = (options.usingComponents || []).filter(i => isInRange(i))
967
+ const range = getAndRemoveAttr(el, 'range').val
968
+ const isInRange = makeMap(range || '')
969
+ el.components = (options.usingComponents || []).filter(i => {
970
+ if (!range) return true
971
+ return isInRange(i)
972
+ })
969
973
  if (!el.components.length) {
970
974
  warn$1('Component in which <component> tag is used must have a non blank usingComponents field')
971
975
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/webpack-plugin",
3
- "version": "2.9.39",
3
+ "version": "2.9.40",
4
4
  "description": "mpx compile core",
5
5
  "keywords": [
6
6
  "mpx"
@@ -84,5 +84,5 @@
84
84
  "engines": {
85
85
  "node": ">=14.14.0"
86
86
  },
87
- "gitHead": "87957d360b18806f16d169612d924d383ac043c4"
87
+ "gitHead": "af534454668449ab020db3566cc5af98049286fb"
88
88
  }