Reputation: 3433
I'm trying to use 'react-responsive' but I am getting the error message - Unknown plugin "add-module-exports
It looks like this relates to the fact that node_modules needs to be excluded but due to a bug in babel v6 (fixed in v7) adding "ignore": "node_modules"
to the .babelrc
file doesn't work.
https://github.com/contra/react-responsive/issues/131
It seems like parcel-bundler uses babel v6 so my question is , how can I ignore node_modules and get parcel to bundle without throwing an error?
Upvotes: 3
Views: 1165
Reputation: 5656
I was facing a similar issue recently with parcel, installing babel-plugin-add-module-exports
seemed to fix the issue
Upvotes: 1