Restore common in main and add note about __non_webpack_require__

This commit is contained in:
Samuel Elliott 2018-06-10 22:40:46 +01:00
parent d7db836e30
commit 4a3bb89259
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
2 changed files with 2 additions and 0 deletions

View File

@ -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';

View File

@ -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__;
}