@mpxjs/webpack-plugin 2.9.36 → 2.9.38

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.
@@ -16,7 +16,12 @@ module.exports = function getSpec ({ warn, error }) {
16
16
  {
17
17
  web ({ name, value }) {
18
18
  const parsed = parseMustacheWithContext(value)
19
- if (parsed.hasBinding) {
19
+ if (name.startsWith('data-')) {
20
+ return {
21
+ name: ':' + name,
22
+ value: `JSON.stringify(${parsed.result})`
23
+ }
24
+ } else if (parsed.hasBinding) {
20
25
  return {
21
26
  name: name === 'animation' ? 'v-animation' : ':' + name,
22
27
  value: parsed.result
@@ -147,7 +147,10 @@ function createApp ({ componentsMap, Vue, pagesMap, firstPage, VueRouter, App, t
147
147
  const sessionStorage = window.sessionStorage
148
148
  try {
149
149
  if (sessionStorage) {
150
- mpxStackPath = JSON.parse(sessionStorage.getItem('_mpx_stack_path_'))
150
+ const stackPath = JSON.parse(sessionStorage.getItem('_mpx_stack_path_'))
151
+ if (Array.isArray(stackPath)) {
152
+ mpxStackPath = stackPath
153
+ }
151
154
  }
152
155
  } catch (e) {
153
156
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/webpack-plugin",
3
- "version": "2.9.36",
3
+ "version": "2.9.38",
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": "23c1e87cde0eafbb4a6526d83551eb5e12740ba8"
85
+ "gitHead": "5e2740e2091edda91eda9ffe775989c7fd9838df"
86
86
  }