Skip to content
This repository has been archived by the owner on Jan 26, 2019. It is now read-only.

Commit

Permalink
Use correct tsconfig file for TsconfigPathsPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
DorianGrey committed Jun 13, 2018
1 parent 7e2a0be commit c27879b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/react-scripts/config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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,
},
},
],
Expand Down Expand Up @@ -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,
}),
Expand Down

0 comments on commit c27879b

Please sign in to comment.