Ignore components with no default export

InteractiveAuthEntryComponents is not a single component and
doesn't really fit into the structure: ignore it, otherwise
we crash when loading the skin.
This commit is contained in:
David Baker 2016-10-13 10:36:11 +01:00
parent 74b443f0d3
commit 1336fe7490
2 changed files with 103 additions and 103 deletions

View file

@ -45,7 +45,7 @@ for (var i = 0; i < files.length; ++i) {
var importName = moduleName.replace(/\./g, "$");
strm.write("import " + importName + " from './components/" + file + "';\n");
strm.write("module.exports.components['"+moduleName+"'] = " + importName + ";");
strm.write(importName + " && (module.exports.components['"+moduleName+"'] = " + importName + ");");
strm.write('\n');
strm.uncork();
}