@mpxjs/webpack-plugin 2.9.18 → 2.9.21

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.
@@ -375,9 +375,9 @@ module.exports = function getSpec ({ warn, error }) {
375
375
  }
376
376
  },
377
377
  web ({ name, value }, { eventRules, el, usingComponents }) {
378
- if (parseMustacheWithContext(value).hasBinding) {
379
- error('Web environment does not support mustache binding in event props!')
380
- return
378
+ const parsed = parseMustacheWithContext(value)
379
+ if (parsed.hasBinding) {
380
+ value = '__invokeHandler(' + parsed.result + ', $event)'
381
381
  }
382
382
  const match = this.test.exec(name)
383
383
  const prefix = match[1]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/webpack-plugin",
3
- "version": "2.9.18",
3
+ "version": "2.9.21",
4
4
  "description": "mpx compile core",
5
5
  "keywords": [
6
6
  "mpx"
@@ -83,5 +83,5 @@
83
83
  "engines": {
84
84
  "node": ">=14.14.0"
85
85
  },
86
- "gitHead": "ec6a5d714daf59eed0e5651aa4611a9f9383d233"
86
+ "gitHead": "0ed5fa50016bd13a170c38619cfa9cbcc352ba23"
87
87
  }