natjs integration error, when running natjs if (typeof(__weex_define__) === 'function') prompts undefined
let Nat = {}
if (typeof(__weex_define__) === 'function') {
const camera = require('./camera')
const communication = require('./communication')
const geolocation = require('./geolocation')
const media = require('./media')
const modal = require('./modal')
const recorder = require('./recorder')
const network = require('./network')
const sensor = require('./sensor')
const device = require('./device')
const navigator = require('./navigator')