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

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.
package/lib/index.js CHANGED
@@ -598,9 +598,7 @@ class MpxWebpackPlugin {
598
598
  hasPage: false,
599
599
  entries: []
600
600
  }
601
-
602
601
  if (entryType === 'page') curInfo.hasPage = true
603
-
604
602
  curInfo.entries.push({
605
603
  entryType,
606
604
  resource,
@@ -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.1",
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": "07476d16af98cf988302ecb118fc4fb787a8873f"
86
86
  }