This resolves an issue where this plugin doesn't work at all.
- webpack build does not run successfully, typescript errors out, saying "TS2304: Cannot find name 'module'." or 'require' or 'process' in certain .ts files.