[英]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. 我想从JS中读取正在执行的模块中的babel配置。
I do not use webpack, I only use babel with babel cli. 我不使用webpack,仅将babel与babel cli一起使用。
Where can I find the babel configuration of a non ejected application made with create-react-app ? 在哪里可以找到使用create-react-app制作的未弹出应用程序的babel配置?
create-react-app doesn't have a separate babel config file. create-react-app没有单独的babel配置文件。
Instead, it uses the preset babel-preset-react-app
. 相反,它使用预设的
babel-preset-react-app
。
You can find more details on the preset here - babel-preset-react-app 您可以在此处找到有关预设的更多详细信息-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 另一方面,如果您对babel的webpack配置感兴趣,可以在@Tholle的注释中找到它
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.