We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8944aab commit 1d694b5Copy full SHA for 1d694b5
packages/react-scripts/config/webpack.config.js
@@ -44,6 +44,10 @@ const shouldInlineRuntimeChunk = process.env.INLINE_RUNTIME_CHUNK !== 'false';
44
// Check if TypeScript is setup
45
const useTypeScript = fs.existsSync(paths.appTsConfig);
46
47
+// Skip TypeScript type checking
48
+const typeCheckTypeScript =
49
+ useTypeScript && !(process.env.SKIP_TYPE_CHECK === 'true');
50
+
51
// style files regexes
52
const cssRegex = /\.css$/;
53
const cssModuleRegex = /\.module\.css$/;
@@ -620,7 +624,7 @@ module.exports = function(webpackEnv) {
620
624
],
621
625
}),
622
626
// TypeScript type checking
623
- useTypeScript &&
627
+ typeCheckTypeScript &&
628
new ForkTsCheckerWebpackPlugin({
629
typescript: resolve.sync('typescript', {
630
basedir: paths.appNodeModules,
0 commit comments