Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | import { MitoVue } from './Vue/index'
import { setupReplace } from './browser/load'
import { log } from './core/index'
import { isBrowserEnv, isWxMiniEnv, _global } from './utils/index'
import { SDK_VERSION, SDK_NAME } from './common/config'
import { InitOptions } from './types/index'
import { errorBoundaryReport } from './React/index'
import initOptions from './common/initOpitons'
import { init as wxInit } from './wx-mini/index'
function webInit(Ioptions: InitOptions = {}): void {
Iif (!('XMLHttpRequest' in _global) || options.disabled) return
initOptions(options)
setupReplace()
}
function init(Ioptions: InitOptions = {}): void {
Eif (isBrowserEnv) {
webInit(options)
} else if (isWxMiniEnv) {
wxInit(options)
}
}
export default { MitoVue, SDK_VERSION, SDK_NAME, init, log, errorBoundaryReport }
|