We are planning to release Create React App version 3.0 soon. This will be a relatively small release but will include a number of necessary breaking changes.
Planned Features
Nice to Have Features
Refer to the 3.0 Milestone to see exactly what is included in this release.
☢️ How Can I Test This Now? ☢️
We're happy you'd like to test the next version of react-scripts! Before getting into the details, we'd like to make you aware of a few things:
- Features may be broken or not work as expected
- There will be more breaking changes introduced before the final release ⚠️
- Documentation for new features is still sparse, so look through the pull requests for how they're expected to work
You can install the latest alpha version of react-scripts using one of the following commands:
$ # Create a new application
$ npx create-react-app@next --scripts-version=3.0.0-next.68 app-name
$ # Upgrade an existing application
$ yarn upgrade [email protected]
Upgrading from 2.0 to 3.0
-
The browserslist config in your package.json is now used to control the output of your JavaScript files. You can use separate configuration for development and production. See
|
"browserslist": { |
|
"production": [ |
|
">0.2%", |
|
"not dead", |
|
"not op_mini all" |
|
], |
|
"development": [ |
|
"last 1 chrome version", |
|
"last 1 firefox version", |
|
"last 1 safari version" |
|
] |
|
} |
for a good starting point which gives a good development experience, especially when using language features such as async/await, but still provides high compatibility with many browsers in production
-
We now have linting support for TypeScript files! If you're using Visual Studio Code, see https://github.com/facebook/create-react-app/blob/master/docusaurus/docs/setting-up-your-editor.md#displaying-lint-output-in-the-editor for tips to get syntax highlighting from the ESLint extension in your .ts and .tsx files
-
We now support setting basePath in jsconfig.json. To configure basePath to point to the src directory create a jsconfig.json file in your project root:
{
"compilerOptions": {
"baseUrl": "src"
}
}
Known Issues in 3.0 Alphas
Please report any bugs you encounter or behavior you believe to be incorrect by creating a new issue. Have fun!
We are planning to release Create React App version 3.0 soon. This will be a relatively small release but will include a number of necessary breaking changes.
Planned Features
jsconfig.json/tsconfig.json: Set baseUrl from jsconfig.json/tsconfig.json #6656Nice to Have Features
Refer to the 3.0 Milestone to see exactly what is included in this release.
☢️ How Can I Test This Now? ☢️
We're happy you'd like to test the next version of
react-scripts! Before getting into the details, we'd like to make you aware of a few things:You can install the latest alpha version of
react-scriptsusing one of the following commands:Upgrading from 2.0 to 3.0
The
browserslistconfig in yourpackage.jsonis now used to control the output of your JavaScript files. You can use separate configuration fordevelopmentandproduction. Seecreate-react-app/packages/react-scripts/package.json
Lines 83 to 94 in b0cbf2c
We now have linting support for TypeScript files! If you're using Visual Studio Code, see https://github.com/facebook/create-react-app/blob/master/docusaurus/docs/setting-up-your-editor.md#displaying-lint-output-in-the-editor for tips to get syntax highlighting from the ESLint extension in your
.tsand.tsxfilesWe now support setting
basePathinjsconfig.json. To configurebasePathto point to thesrcdirectory create ajsconfig.jsonfile in your project root:{ "compilerOptions": { "baseUrl": "src" } }Known Issues in 3.0 Alphas
File watching issue with Jest 24: Update Jest to fix watch bug #6646Please report any bugs you encounter or behavior you believe to be incorrect by creating a new issue. Have fun!