Restore common in main and add note about __non_webpack_require__
This commit is contained in:
parent
d7db836e30
commit
4a3bb89259
|
@ -11,6 +11,7 @@
|
|||
import { DOM, BdUI, BdMenu, Modals, Reflection } from 'ui';
|
||||
import BdCss from './styles/index.scss';
|
||||
import { Events, CssEditor, Globals, Settings, Database, Updater, ModuleManager, PluginManager, ThemeManager, ExtModuleManager, Vendor, WebpackModules, Patcher, MonkeyPatch, ReactComponents, ReactHelpers, ReactAutoPatcher, DiscordApi } from 'modules';
|
||||
import { ClientLogger as Logger, ClientIPC, Utils } from 'common';
|
||||
import { EmoteModule } from 'builtin';
|
||||
import electron from 'electron';
|
||||
import path from 'path';
|
||||
|
|
|
@ -18,6 +18,7 @@ export default new class extends Module {
|
|||
constructor(args) {
|
||||
super(args);
|
||||
|
||||
// webpack replaces this with the normal require function
|
||||
// eslint-disable-next-line no-undef
|
||||
this.require = __non_webpack_require__;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue