Disable errors for __[non_]webpack_require__

This commit is contained in:
Samuel Elliott 2018-05-28 04:16:41 +01:00
parent 1de4680ded
commit bee869340d
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
2 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class BetterDiscord {
__filename, __dirname,
module: Globals.require.cache[__filename],
require: Globals.require,
webpack_require: __webpack_require__,
webpack_require: __webpack_require__, // eslint-disable-line no-undef
get discord_require() { return WebpackModules.require }
};

View File

@ -18,6 +18,7 @@ export default new class extends Module {
constructor(args) {
super(args);
// eslint-disable-next-line no-undef
this.require = __non_webpack_require__;
}