diff --git a/packages/metro/src/lib/bundle-modules/asyncRequire.js b/packages/metro/src/lib/bundle-modules/asyncRequire.js index dd544eff..38c41cee 100644 --- a/packages/metro/src/lib/bundle-modules/asyncRequire.js +++ b/packages/metro/src/lib/bundle-modules/asyncRequire.js @@ -15,5 +15,5 @@ // eslint-disable-next-line flow-no-fixme const dynamicRequire = (require: $FlowFixMe); module.exports = function(moduleID: mixed): Promise { - return Promise.resolve(dynamicRequire(moduleID)); + return Promise.resolve().then(() => ({default: dynamicRequire(moduleID)})); };