Skip to content

Commit

Permalink
Fix for running Terser inside ExecJS with missing global global
Browse files Browse the repository at this point in the history
  • Loading branch information
khaitu committed Nov 25, 2023
1 parent 636421c commit 49df385
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/terser_wrapper.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Set source-map.js sourceMap to terser.js MOZ_SourceMap
MOZ_SourceMap = sourceMap;

var global = global || {};

function comments(option) {
if (Object.prototype.toString.call(option) === '[object Array]') {
return new RegExp(option[0], option[1]);
Expand Down

0 comments on commit 49df385

Please sign in to comment.