@@ -93,6 +93,27 @@ module.exports = function(webpackEnv) {
9393 // passed into alias object. Uses a flag if passed into the build command
9494 const isEnvProductionProfile =
9595 isEnvProduction && process . argv . includes ( '--profile' ) ;
96+ 97+ const workspacesMainFields = [
98+ workspacesConfig . packageEntry ,
99+ 'browser' ,
100+ 'module' ,
101+ 'main' ,
102+ ] ;
103+ 104+ const mainFields =
105+ isEnvDevelopment && workspacesConfig . development
106+ ? workspacesMainFields
107+ : isEnvProduction && workspacesConfig . production
108+ ? workspacesMainFields
109+ : undefined ;
110+ 111+ const includePaths =
112+ isEnvDevelopment && workspacesConfig . development
113+ ? [ paths . appSrc , ...workspacesConfig . paths ]
114+ : isEnvProduction && workspacesConfig . production
115+ ? [ paths . appSrc , ...workspacesConfig . paths ]
116+ : paths . appSrc ;
96117
97118 // Webpack uses `publicPath` to determine where the app is being served from.
98119 // It requires a trailing slash, or the file assets will get an incorrect path.
@@ -723,6 +744,10 @@ module.exports = function(webpackEnv) {
723744 typescript : resolve . sync ( 'typescript' , {
724745 basedir : paths . appNodeModules ,
725746 } ) ,
747+ compilerOptions : {
748+ skipLibCheck : true ,
749+ suppressOutputPathCheck : true ,
750+ } ,
726751 async : isEnvDevelopment ,
727752 useTypescriptIncrementalApi : true ,
728753 checkSyntacticErrors : true ,
0 commit comments