Skip to content

Commit 497722a

Browse files
committed
Switch from require('module') to module.constructor to make it work with Webpack
1 parent 2b33723 commit 497722a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wrapper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const assert = require('assert');
22
const translate = require('./translate.js');
3-
const Module = require('module');
3+
const Module = module.constructor;
44
const https = require('follow-redirects').https;
55
const MemoryStream = require('memorystream');
66
const semver = require('semver');

0 commit comments

Comments
 (0)