Description
Hello,
Thank you everyone for your support and interest in this package.
I will be adding a depreciated banner to this repository as soon as the pull request below is released. Let me know if you have any questions or concerns.
Create React App adds TypeScript Support
There is a pending pull request to add TypeScript support (through the Babel preset) to Create React App which you can view here:
facebook/create-react-app#4837. I was able to swap out this rewire for a build of Create React App with TypeScript support.
The first post has instructions on how to try the new build out. For testing purposes, it was recommended to build the branch and use Yarn's link feature.
It looks like it is very close to release. It may be worth waiting for the official release.
If you're interesting in adding the build to your project without linking, you can try the following (Yarn instructions):
- Build the Create React App project per the instructions of the first post in the pull request
- Copy the packages
babel-preset-react-app
andreact-scripts
to a folder in your workspace:
/vendor/react-scripts
/vendor/babel-preset-react-app
- Add a resolutions override to package.json:
"resolutions": {
"react-scripts/babel-preset-react-app": "file:./vendor/babel-preset-react-app"
}
- Add the vendored dependencies to package.json:
"dependencies": {
"babel-preset-react-app": "file:./vendor/babel-preset-react-app",
"react-scripts": "file:./vendor/react-scripts"
}
Create React App v2 Release Notes
You can view the blog post here: https://reactjs.org/blog/2018/10/01/create-react-app-v2.html
Migration instructions from alpha:
https://gist.github.com/gaearon/8650d1c70e436e5eff01f396dffc4114
Monorepo support (from 2.x alphas) was removed in final 2.0
The decision to drop monorepo support is detailed here: https://gist.github.com/gaearon/8650d1c70e436e5eff01f396dffc4114#monorepo-support-from-2x-alphas-was-removed-in-final-20
Files from before monorepo support removal
webpack.config.dev.js
https://github.com/facebook/create-react-app/blob/22353ecf02db21f7bff6a0c088ef7f0631f29fd6/packages/react-scripts/config/webpack.config.dev.js#L219
workspaceUtils.js
https://github.com/facebook/create-react-app/blob/22353ecf02db21f7bff6a0c088ef7f0631f29fd6/packages/react-dev-utils/workspaceUtils.js