Create-React-App-无需退出即可转译代码的任何方式

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

我已经使用create-react-app创建了一个应用程序。

我正在使用ES5 / ES6功能,例如

arrayOfObjects.find(object => object.value == desiredValue);

当然,这在IE11等较旧的浏览器中将不起作用。 您会收到类似“发现不存在”的错误。

有什么方法可以在无需退出的情况下转译我的代码吗?

reactjs ecmascript-6 babel create-react-app transpiler
© www.soinside.com 2019 - 2024. All rights reserved.