Replace tip #3

wesleycoder opened this Issue Sep 12, 2016 · 1 comment


None yet

2 participants


Dunno if this is the right place to this, but...

I have struggled with rollup-plugin-replace for half an hour about it being breaking stuff when I put react in my project when reading/watching

The thing is that by default replace will transform node_modules modules too and in order to avoid it we have to add node_modules/** to the exclude option passed to replace.

You could put a tip in your article in order to help others not being trapped in this situation.

Ty 4 the awesome content.


I added a note in jlengstorf/

Thanks for the heads-up!

@jlengstorf jlengstorf closed this Sep 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment