Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

Commit

Permalink
update sfx core for latest interop
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Sep 18, 2017
1 parent acbb0a3 commit c7e1854
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
22 changes: 9 additions & 13 deletions templates/sfx-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,22 +226,18 @@
});
var require = makeDynamicRequire(link.deps, link.depLoads, seen);

// evaluate deps first
if (!link.executingRequire)
for (var i = 0; i < link.deps.length; i++)
require(link.deps[i]);
if (module.exports !== moduleObj.__useDefault)
moduleObj.default = moduleObj.__useDefault = module.exports;

var output = link.execute.call(global, require, moduleObj.__useDefault, module);
if (output !== undefined)
moduleObj.default = moduleObj.__useDefault = output;

var defaultExport = moduleObj.__useDefault;
var moduleDefault = moduleObj.default;

// __esModule flag extension support
if (defaultExport && defaultExport.__esModule)
for (var p in defaultExport)
if (Object.hasOwnProperty.call(defaultExport, p))
moduleObj[p] = defaultExport[p];
if (moduleDefault && moduleDefault.__esModule) {
for (var p in moduleDefault)
if (Object.hasOwnProperty.call(moduleDefault, p))
moduleObj[p] = moduleDefault[p];
}

}

var module = load.module = new Module(link.moduleObj);
Expand Down
2 changes: 1 addition & 1 deletion templates/sfx-core.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c7e1854

Please sign in to comment.