You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-06-23 05:41:39 +03:00
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:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user