@mpxjs/webpack-plugin 2.7.7 → 2.7.8

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.
@@ -2130,7 +2130,12 @@ function postProcessComponentIs (el) {
2130
2130
  } else {
2131
2131
  tempNode = getTempNode()
2132
2132
  }
2133
+ let range = []
2134
+ if (el.attrsMap.range) {
2135
+ range = getAndRemoveAttr(el, 'range').val.split(',')
2136
+ }
2133
2137
  el.components.forEach(function (component) {
2138
+ if (range.length > 0 && !range.includes(component)) return
2134
2139
  let newChild = createASTElement(component, cloneAttrsList(el.attrsList), tempNode)
2135
2140
  newChild.if = {
2136
2141
  raw: `{{${el.is} === ${stringify(component)}}}`,
@@ -1,3 +1,5 @@
1
- const path = require('path')
1
+ // const path = require('path')
2
2
 
3
- exports.lib = file => path.resolve(__dirname, '../', file)
3
+ // exports.lib = file => path.resolve(__dirname, '../', file)
4
+ // support npm link debug
5
+ exports.lib = file => '@mpxjs/webpack-plugin/lib/' + file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/webpack-plugin",
3
- "version": "2.7.7",
3
+ "version": "2.7.8",
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": "53b05609117a347648f6cbb58693b25424a20ea9"
83
+ "gitHead": "7c4e607bae13678cadc080d3303e9b432074d03e"
84
84
  }