如何在react-create-app中编辑配置文件?

问题描述 投票:0回答:1

我想在反应时使用一些第三方软件包,它们是:

我正在使用create-react-app作为样板

安装yart start所有软件包(含纱线)并运行yart start ,出现此错误:

在此处输入图片说明

如何在不运行yarn eject来修改.babelrc文件的情况下添加@babel/plugin-proposal-class-properties

还是对此问题有其他解决方案?

reactjs webpack babel create-react-app yarnpkg
1个回答
0
投票

看来唯一的方法是弹出。 CRA故意避免了过多的自定义。 参见https://github.com/facebook/create-react-app/issues/167

© www.soinside.com 2019 - 2024. All rights reserved.