我可以在 create-react-app 中为双冒号运算符添加 preset/plugin 吗?
Can I add the preset/plugin for double colon operator in create-react-app?
我正在寻找一种方法,但找不到如何为 babel 添加预设或插件来转译 。
我可以这样做吗(以及如何做),或者您不能修改 create-react-app
上的配置?
有一个transform-function-bind
Babel plugin。但是,create-react-app
不允许您修改底层 Babel 配置,因此您必须 npm run eject
(通常不推荐这样做,因为您将失去更新 react-scripts
的能力)。如果您不需要此功能,我建议您忽略它,如果您认为有必要,您可能想考虑不使用 create-react-app
(或弹出)。
我正在寻找一种方法,但找不到如何为 babel 添加预设或插件来转译
我可以这样做吗(以及如何做),或者您不能修改 create-react-app
上的配置?
有一个transform-function-bind
Babel plugin。但是,create-react-app
不允许您修改底层 Babel 配置,因此您必须 npm run eject
(通常不推荐这样做,因为您将失去更新 react-scripts
的能力)。如果您不需要此功能,我建议您忽略它,如果您认为有必要,您可能想考虑不使用 create-react-app
(或弹出)。