From 7024d21f7e297324181b8f9156026123a8e35e1e Mon Sep 17 00:00:00 2001 From: DorianGrey Date: Tue, 15 May 2018 12:30:11 +0200 Subject: [PATCH] Use correct tsconfig file for TsconfigPathsPlugin --- packages/react-scripts/config/webpack.config.prod.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react-scripts/config/webpack.config.prod.js b/packages/react-scripts/config/webpack.config.prod.js index c267bf011..7cb33afd0 100644 --- a/packages/react-scripts/config/webpack.config.prod.js +++ b/packages/react-scripts/config/webpack.config.prod.js @@ -131,7 +131,7 @@ module.exports = { // please link the files into your node_modules/ and let module-resolution kick in. // Make sure your source files are compiled, as they will not be processed in any way. new ModuleScopePlugin(paths.appSrc, [paths.appPackageJson]), - new TsconfigPathsPlugin({ configFile: paths.appTsConfig }), + new TsconfigPathsPlugin({ configFile: paths.appTsProdConfig }), ], }, module: { @@ -183,7 +183,7 @@ module.exports = { options: { // disable type checker - we will use it in fork plugin transpileOnly: true, - configFile: paths.appTsProdConfig + configFile: paths.appTsProdConfig, }, }, ], @@ -333,7 +333,7 @@ module.exports = { // Enable file caching cache: true, sourceMap: shouldUseSourceMap, - }), // Note: this won't work without ExtractTextPlugin.extract(..) in `loaders`. + }), // Note: this won't work without ExtractTextPlugin.extract(..) in `loaders`. new ExtractTextPlugin({ filename: cssFilename, }),