Skip to content

Commit

Permalink
Switch from require('module') to module.constructor to make it work w…
Browse files Browse the repository at this point in the history
…ith Webpack
  • Loading branch information
cameel committed Dec 22, 2021
1 parent 2b33723 commit 497722a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wrapper.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const assert = require('assert');
const translate = require('./translate.js');
const Module = require('module');
const Module = module.constructor;
const https = require('follow-redirects').https;
const MemoryStream = require('memorystream');
const semver = require('semver');
Expand Down

0 comments on commit 497722a

Please sign in to comment.