ayroblu / ssr-create-react-app-v2

This is the v2, its much better written, and uses react-router v4, which is actually pretty nice
230 stars 50 forks source link

Why code works with react-app preset? #21

Open bondom opened 6 years ago

bondom commented 6 years ago

There is used next code to enable import and jsx: require('babel-register')({ ignore: /\/(build|node_modules)\//, presets: ['env','react-app'] })

But at the same time next code also works(react-app was changed to react): require('babel-register')({ ignore: /\/(build|node_modules)\//, presets: ['env','react'] })

As I understand there is used babel-preset-react. But I can’t understand why it works with react-app..

Please explain this moment..