Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[WEEX-445][jsfm] export requireModule to global
Browse files Browse the repository at this point in the history
  • Loading branch information
imyzf committed Jun 27, 2018
1 parent b698154 commit aebd432
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions runtime/api/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ function createInstanceContext (id, options = {}, data) {
Object.assign(runtimeContext, services, {
weex,
getJSFMVersion,
requireModule: (...args) => weex.requireModule(...args),
__WEEX_CALL_JAVASCRIPT__: receiveTasks,
services // Temporary compatible with some legacy APIs in Rax
})
Expand Down

0 comments on commit aebd432

Please sign in to comment.