I'm using WebPack, Babel and React. I have a folder structure like the below
node_modules/
.babelrc
package.json
SomeThirdPartyFolder/
node_modules/
package.json
src/
FileA.js
I wanted to use FileA which has jsx content, however it acted as though Babel wasn't there, i.e. it produced a compile error on the below
return (
<div className etc
If I remove the package.json in SomeThirdPartyFolder then it does compile
Clearly this isn't a real situation but I'd like to understand what's happening here