Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/didi/mpx
Browse files Browse the repository at this point in the history
  • Loading branch information
hiyuki committed Dec 11, 2023
2 parents ed167cc + 5a1a48a commit 1055fcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion packages/store/@types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ type UnboxDepField<D, F> = F extends keyof D ? D[F] : {}
type GetReturnOrSelf<T> = T extends (...args: any)=> infer R ? R : T

interface compContext {
__mpxProxy: object;
[key: string]: any
}

Expand Down
4 changes: 3 additions & 1 deletion packages/webpack-plugin/lib/web/processMainScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ module.exports = function (script, {
output += ` import Vue from 'vue'
import VueRouter from 'vue-router'
import Mpx from '@mpxjs/core'
import App from ${stringifyRequest(loaderContext, addQuery(resource, { isApp: true }))}
import { processAppOption, getComponent } from ${stringifyRequest(loaderContext, optionProcessorPath)}
Vue.use(VueRouter)\n`

Expand All @@ -64,6 +63,9 @@ module.exports = function (script, {
isMain: true,
globalTabBar
})

output += `\n const App = require(${stringifyRequest(loaderContext, addQuery(resource, { isApp: true }))}).default\n`

output += `
export default processAppOption({
App,
Expand Down

0 comments on commit 1055fcc

Please sign in to comment.