@mpxjs/webpack-plugin 2.8.33 → 2.8.34

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.
@@ -147,6 +147,7 @@ export default function processOption (
147
147
  global.__mpxRouter.needRemove = stack.filter((item) => {
148
148
  if (tabBarMap[item.path.slice(1)]) {
149
149
  tabItem = item
150
+ tabItem.path = to.path
150
151
  return false
151
152
  }
152
153
  return true
@@ -132,7 +132,7 @@ module.exports = function (script, {
132
132
  const i18nObj = Object.assign({}, i18n)
133
133
  content += ` import VueI18n from 'vue-i18n'
134
134
  import { createI18n } from 'vue-i18n-bridge'
135
-
135
+
136
136
  Vue.use(VueI18n , { bridge: true })\n`
137
137
  const requestObj = {}
138
138
  const i18nKeys = ['messages', 'dateTimeFormats', 'numberFormats']
@@ -206,6 +206,7 @@ module.exports = function (script, {
206
206
 
207
207
  content += ` global.currentModuleId = ${JSON.stringify(moduleId)}\n`
208
208
  content += ` global.currentSrcMode = ${JSON.stringify(scriptSrcMode)}\n`
209
+ content += ` global.currentInject = ${JSON.stringify({ moduleId })}\n`
209
210
  if (!isProduction) {
210
211
  content += ` global.currentResource = ${JSON.stringify(loaderContext.resourcePath)}\n`
211
212
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/webpack-plugin",
3
- "version": "2.8.33",
3
+ "version": "2.8.34",
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": "6838a99375bfce3ebd8046e86f8806920f4f2b37"
85
+ "gitHead": "7943c0a8c559299c4d59a2b27ee4abc543c58f13"
86
86
  }