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:
parent
8c5fde28d1
commit
923d2264dd
2 changed files with 105 additions and 101 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue