Skip to content

Commit 273043d

Browse files
authored
fix: remove unwanted exports (#75)
The extension emits some exceptions because the package is not a module, just a script. > Uncaught ReferenceError: module is not defined Their is nothing to export in the main script.
1 parent ec5deaf commit 273043d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/mergify.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,4 +411,7 @@ class MergifyCache {
411411
});
412412
})();
413413

414-
module.exports = { MergifyCache, findNewMergeBox };
414+
// Required for testing only, module does not exists in an extension
415+
try {
416+
module.exports = { MergifyCache, findNewMergeBox };
417+
} catch (e) {}

0 commit comments

Comments
 (0)