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 | 1x 1x 1x 1x 1x | import initOptions from '../common/initOpitons'
import { InitOptions } from '../types/options'
import { isWxMiniEnv } from '../utils'
import { setupReplace } from './load'
import { log } from '../core/index'
export function init(options: InitOptions = {}) {
if (!isWxMiniEnv) return
initOptions(options)
setupReplace()
Object.assign(wx, { mitoLog: log })
}
|