简体   繁体   中英

Where does create-react-app application store it's babel configuration when not ejected?

I want to read from JS the babel configuration within a module I am doing.

I do not use webpack, I only use babel with babel cli.

Where can I find the babel configuration of a non ejected application made with create-react-app ?

create-react-app doesn't have a separate babel config file.

Instead, it uses the preset babel-preset-react-app .

You can find more details on the preset here - babel-preset-react-app

On the other hand, if you're interested in the webpack config for babel, you'll find it here as pointed out by @Tholle in the comments

webpack.config.js

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM