mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-15 11:31:33 +03:00
18ac2db2ea
require() is a bit weird for riot-web's webpack, so we fork it out to its own function to reduce the weirdness. The added weirdness is that require() is sync though exports a module instead. If we use import(), we get a promise which doesn't help us here. We therefore have to require() and pull out the default export, though this is only a problem for webpack - babel (our chosen compiler for exporting ES6) doesn't need this, hence the if statement. |
||
---|---|---|
.. | ||
CustomStatusController.js | ||
NotificationControllers.js | ||
ReloadOnChangeController.js | ||
SettingController.js | ||
ThemeController.js |