We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 237a61f commit bb1e72cCopy full SHA for bb1e72c
cjs-wrapper.cjs
@@ -2,7 +2,7 @@
2
let RealPlugin;
3
4
module.exports = class FakeCJSWrapperPlugin {
5
- static async isEnabled() {
+ static async isEnabled(...args) {
6
// we use the async of this method to enable us to absorb the dynamic
7
// import statement
8
@@ -14,6 +14,12 @@ module.exports = class FakeCJSWrapperPlugin {
14
// eslint-disable-next-line node/no-unsupported-features/es-syntax
15
let RealPluginModule = await import('./index.js');
16
RealPlugin = RealPluginModule.default;
17
+
18
+ return RealPlugin.isEnabled(...args);
19
+ }
20
21
+ static disablePlugin(...args) {
22
+ return RealPlugin.disablePlugin(...args);
23
}
24
25
constructor(...args) {
0 commit comments