锄头是否在使用create-react-app创建的项目中将代码转换为javascript --scripts-version = react-scripts-ts?它使用Babel / Webpack吗?我检查了package.json,但没有提到任何这样的依赖 .
react-scripts* 只是常见配置的包装器 .
react-scripts*
正如你所看到的here它使用babel-loader从js / jsx转换为es5 . 还使用ts-loader从ts编译为js .
是的,有了巴贝尔:
https://github.com/facebook/create-react-app/blob/next/packages/react-scripts/package.json
编译的代码在 react-scripts
react-scripts
2 回答
react-scripts*
只是常见配置的包装器 .正如你所看到的here它使用babel-loader从js / jsx转换为es5 . 还使用ts-loader从ts编译为js .
是的,有了巴贝尔:
https://github.com/facebook/create-react-app/blob/next/packages/react-scripts/package.json
编译的代码在
react-scripts