简体   繁体   English

未弹出时,create-react-app应用程序会将babel配置存储在哪里?

[英]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的注释中找到它

webpack.config.js webpack.config.js

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 添加react-hot-loader以弹出create-react-app - Adding react-hot-loader to ejected create-react-app 有没有办法更改弹出的 create-react-app 的 eslint 规则? - Is there a way to change eslint rules for ejected create-react-app? 使用弹出的create-react-app创建SVG Sprite组件 - Creating an SVG Sprite component with ejected create-react-app 为什么 2020 年 create-react-app 仍然包含 babel - why does create-react-app still include babel in 2020 使用我们从 create-react-app 获得的配置或创建我们自己的自定义 webpack 和 babel 配置并安装 react - use configuration we get from create-react-app or create our own custom webpack and babel configuration and install react Create-React-App 应用程序中 index.html 和 index.js 之间的连接在哪里? - Where's the connection between index.html and index.js in a Create-React-App application? 将 webpack 4 更新为 webpack 5 在现有的 create-react-app 上用 react-app-rewired 弹出 - Update webpack 4 to webpack 5 on an existing create-react-app ejected with react-app-rewired 没有babel或任何构建工具的create-react-app工具如何工作? - How does create-react-app tool work without babel or any build tool? 为什么 create-react-app 中的 Babel 不能正确填充 Array.prototype.at? - why does Babel in create-react-app not polyfill Array.prototype.at properly? create-react-app 总是抛出 babel 错误 - create-react-app always throws babel error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM