@mpxjs/webpack-plugin 2.8.27 → 2.8.28-beta.0

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.
@@ -1,11 +1,10 @@
1
- const templateCompiler = require('../../../../template-compiler/compiler')
2
- const parseMustacheWithContext = templateCompiler.parseMustacheWithContext
1
+ const { parseMustache } = require('../../../../template-compiler/compiler')
3
2
  const normalize = require('../../../../utils/normalize')
4
3
  const TAG_NAME = 'component'
5
4
 
6
5
  /** is 属性格式化为中划线(-)连接 */
7
6
  const formatPropIs = (obj, data) => {
8
- const parsed = parseMustacheWithContext(obj.value)
7
+ const parsed = parseMustache(obj.value)
9
8
  let value = parsed.result
10
9
  if (parsed.hasBinding) value = value.slice(1, -1)
11
10
  const el = data.el
@@ -3,9 +3,7 @@ const JSON5 = require('json5')
3
3
  const getComponentConfigs = require('./component-config')
4
4
  const normalizeComponentRules = require('../normalize-component-rules')
5
5
  const isValidIdentifierStr = require('../../../utils/is-valid-identifier-str')
6
- const templateCompiler = require('../../../template-compiler/compiler')
7
- const parseMustacheWithContext = templateCompiler.parseMustacheWithContext
8
- const stringifyWithResolveComputed = templateCompiler.stringifyWithResolveComputed
6
+ const { parseMustacheWithContext, stringifyWithResolveComputed } = require('../../../template-compiler/compiler')
9
7
  const normalize = require('../../../utils/normalize')
10
8
 
11
9
  module.exports = function getSpec ({ warn, error }) {
@@ -20,7 +18,7 @@ module.exports = function getSpec ({ warn, error }) {
20
18
  const parsed = parseMustacheWithContext(value)
21
19
  if (parsed.hasBinding) {
22
20
  return {
23
- name: name === 'animation' ? 'v-' + name : ':' + name,
21
+ name: name === 'animation' ? 'v-animation' : ':' + name,
24
22
  value: parsed.result
25
23
  }
26
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/webpack-plugin",
3
- "version": "2.8.27",
3
+ "version": "2.8.28-beta.0",
4
4
  "description": "mpx compile core",
5
5
  "keywords": [
6
6
  "mpx"
@@ -82,5 +82,5 @@
82
82
  "engines": {
83
83
  "node": ">=14.14.0"
84
84
  },
85
- "gitHead": "f5b31d1f4f7602f103e5757f910f267d46bb91b1"
85
+ "gitHead": "632d66299998f93fe86cbabbd721ffa62f66d423"
86
86
  }