Skip to content

Removing bind so this works with externally defined replacements#31

Open
samuelmburu wants to merge 1 commit intojamesandersen:masterfrom
samuelmburu:master
Open

Removing bind so this works with externally defined replacements#31
samuelmburu wants to merge 1 commit intojamesandersen:masterfrom
samuelmburu:master

Conversation

@samuelmburu
Copy link
Copy Markdown

I have a shared list of replacements that I share across build systems, by removing the bind(this) the replacements work otherwise I get the following error:

Module build failed: TypeError: repl.replacement.bind is not a function
    at Object.<anonymous> (/Users/samuelmburu/workspace/productivity/survata-com/node_modules/string-replace-webpack-plugin/loader.js:20:72)
    at Array.forEach (<anonymous>)
    at Object.module.exports (/Users/samuelmburu/workspace/productivity/survata-com/node_modules/string-replace-webpack-plugin/loader.js:19:34)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant