Skip to content

Commit 0674cd7

Browse files
author
Morten N.O. Henriksen
committed
Remove rest of TSC_COMPILE_ON_ERROR
This is a breaking change in the webpack 5 update
1 parent a2df30e commit 0674cd7

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

docusaurus/docs/advanced-configuration.md

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ You can adjust various development and production settings by setting environmen
2626
| INLINE_RUNTIME_CHUNK | 🚫 Ignored | ✅ Used | By default, Create React App will embed the runtime script into `index.html` during the production build. When set to `false`, the script will not be embedded and will be imported as usual. This is normally required when dealing with CSP. |
2727
| IMAGE_INLINE_SIZE_LIMIT | ✅ Used | ✅ Used | By default, images smaller than 10,000 bytes are encoded as a data URI in base64 and inlined in the CSS or JS build artifact. Set this to control the size limit in bytes. Setting it to `0` will disable the inlining of images. |
2828
| FAST_REFRESH | ✅ Used | 🚫 Ignored | When set to `false`, disables experimental support for Fast Refresh to allow you to tweak your components in real time without reloading the page. |
29-
| TSC_COMPILE_ON_ERROR | ✅ Used | ✅ Used | When set to `true`, you can run and properly build TypeScript projects even if there are TypeScript type check errors. These errors are printed as warnings in the terminal and/or browser console. |
3029
| ESLINT_NO_DEV_ERRORS | ✅ Used | 🚫 Ignored | When set to `true`, ESLint errors are converted to warnings during development. As a result, ESLint output will no longer appear in the error overlay. |
3130
| DISABLE_ESLINT_PLUGIN | ✅ Used | ✅ Used | When set to `true`, [eslint-webpack-plugin](https://github.com/webpack-contrib/eslint-webpack-plugin) will be completely disabled. |
3231
| DISABLE_NEW_JSX_TRANSFORM | ✅ Used | ✅ Used | When set to `true`, disables the [new JSX transform](https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html) introduced in React 17 and backported to React 16.14.0, 15.7.0, and 0.14.10. New projects will use a version of React that supports this by default but you may need to disable it in existing projects if you can't upgrade React. |

packages/react-scripts/scripts/build.js

+3-13
Original file line numberDiff line numberDiff line change
@@ -126,19 +126,9 @@ checkBrowsers(paths.appPath, isInteractive)
126126
);
127127
},
128128
err => {
129-
const tscCompileOnError = process.env.TSC_COMPILE_ON_ERROR === 'true';
130-
if (tscCompileOnError) {
131-
console.log(
132-
chalk.yellow(
133-
'Compiled with the following type errors (you may want to check these before deploying your app):\n'
134-
)
135-
);
136-
printBuildError(err);
137-
} else {
138-
console.log(chalk.red('Failed to compile.\n'));
139-
printBuildError(err);
140-
process.exit(1);
141-
}
129+
console.log(chalk.red('Failed to compile.\n'));
130+
printBuildError(err);
131+
process.exit(1);
142132
}
143133
)
144134
.catch(err => {

0 commit comments

Comments
 (0)