File tree 2 files changed +2
-7
lines changed
packages/@angular/cli/models/webpack-configs
2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -157,8 +157,6 @@ export function getCommonConfig(wco: WebpackConfigOptions) {
157
157
extraPlugins . push ( new NamedLazyChunksWebpackPlugin ( ) ) ;
158
158
}
159
159
160
- // Read the tsconfig to determine if we should prefer ES2015 modules.
161
-
162
160
return {
163
161
resolve : {
164
162
extensions : [ '.ts' , '.js' ] ,
Original file line number Diff line number Diff line change @@ -121,11 +121,8 @@ export function getProdConfig(wco: WebpackConfigOptions) {
121
121
uglifyCompressOptions . passes = 3 ;
122
122
}
123
123
124
- // Read the tsconfig to determine if we should apply ES6 uglify.
125
- const tsconfigPath = path . resolve ( projectRoot , appConfig . root , appConfig . tsconfig ) ;
126
- const tsConfig = readTsconfig ( tsconfigPath ) ;
127
- const supportES2015 = tsConfig . options . target !== ts . ScriptTarget . ES3
128
- && tsConfig . options . target !== ts . ScriptTarget . ES5 ;
124
+ const supportES2015 = wco . tsConfig . options . target !== ts . ScriptTarget . ES3
125
+ && wco . tsConfig . options . target !== ts . ScriptTarget . ES5 ;
129
126
130
127
if ( supportES2015 ) {
131
128
extraPlugins . push ( new UglifyJSPlugin ( {
You can’t perform that action at this time.
0 commit comments