All files / src/wx-mini index.ts

45.45% Statements 5/11
0% Branches 0/4
0% Functions 0/1
55.56% Lines 5/9

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 121x   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 })
}