@dcloudio/uni-debugger
Version:
uni-app debugger
28 lines (26 loc) • 858 B
JavaScript
const mlink = require('./index')
const Router = mlink.Router
const Hub = mlink.Hub
const debuggerRouter = new Router('debugger')
const nativeProxyHub = new Hub('proxy.native')
const debuggerHub = new Hub('page.debugger')
const inspectorHub = new Hub('proxy.inspector')
const runtimeWorkerHub = new Hub('runtime.worker')
const entryHub = new Hub('page.entry')
const runtimeProxyHub = new Hub('runtime.proxy')
const syncNativeHub = new Hub('sync.native')
const syncV8Hub = new Hub('sync.v8')
const setup = () => {
debuggerRouter.link(nativeProxyHub)
debuggerRouter.link(debuggerHub)
debuggerRouter.link(inspectorHub)
debuggerRouter.link(entryHub)
debuggerRouter.link(syncNativeHub)
debuggerRouter.link(syncV8Hub)
debuggerRouter.link(runtimeWorkerHub)
debuggerRouter.link(runtimeProxyHub)
mlink.load(__dirname)
}
module.exports = {
setup
}