Disable errors for __[non_]webpack_require__
This commit is contained in:
parent
1de4680ded
commit
bee869340d
|
@ -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 }
|
||||
};
|
||||
|
||||
|
|
|
@ -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__;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue