You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
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 https://code.lengstorf.com/learn-rollup-js/
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.
The text was updated successfully, but these errors were encountered:
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 https://code.lengstorf.com/learn-rollup-js/The thing is that by default
replace
will transformnode_modules
modules too and in order to avoid it we have to addnode_modules/**
to the exclude option passed toreplace
.You could put a tip in your article in order to help others not being trapped in this situation.
Ty 4 the awesome content.
The text was updated successfully, but these errors were encountered: