From 8f1e1fb0e9c989e0fad814783231be2e2e69b879 Mon Sep 17 00:00:00 2001 From: Samuel Mburu Date: Thu, 12 Jul 2018 14:29:33 -0700 Subject: [PATCH] Removing bind so this works with externally defined replacements --- loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loader.js b/loader.js index 661c19ad..6a2eee56 100644 --- a/loader.js +++ b/loader.js @@ -17,7 +17,7 @@ module.exports = function(source, map) { if(typeof source === "string") { options.replacements.forEach(function(repl) { - source = source.replace(repl.pattern, repl.replacement.bind(this)); + source = source.replace(repl.pattern, repl.replacement); }, this); } else { this.emitWarning("'source' received by loader was not a string");