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 fcffb23
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 10 additions & 5 deletions templates/sfx-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,13 +235,18 @@
if (output !== undefined)
moduleObj.default = moduleObj.__useDefault = output;

var defaultExport = moduleObj.__useDefault;
if (module.exports !== moduleObj.__useDefault)
moduleObj.default = moduleObj.__useDefault = module.exports;

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 fcffb23

Please sign in to comment.