UNPKG

weex-nuke

Version:

基于 Rax 、Weex 的高性能组件体系 ~~

15 lines (11 loc) 256 B
import { nativeEnv as Native } from './native'; import { webEnv as H5 } from './web'; const isWeex = typeof callNative === 'function'; // eslint-disable-next-line let Entry; if (isWeex) { Entry = Native; } else { Entry = H5; } export default Entry;