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.Dismiss alert
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..
The text was updated successfully, but these errors were encountered:
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 toreact
):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..
The text was updated successfully, but these errors were encountered: