File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed
packages/angular_devkit/build_angular/src Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -76,8 +76,6 @@ export interface BuildOptions {
76
76
/** @deprecated use only for compatibility in 8.x; will be removed in 9.0 */
77
77
rebaseRootRelativeCssUrls ?: boolean ;
78
78
79
- /* Append script target version to filename. */
80
- esVersionInFileName ?: boolean ;
81
79
experimentalRollupPass ?: boolean ;
82
80
allowedCommonJsDependencies ?: string [ ] ;
83
81
}
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration {
70
70
71
71
const targetInFileName = getEsVersionForFileName (
72
72
tsConfig . options . target ,
73
- buildOptions . esVersionInFileName ,
73
+ wco . differentialLoadingMode ,
74
74
) ;
75
75
76
76
if ( buildOptions . main ) {
@@ -126,7 +126,6 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration {
126
126
if ( differentialLoadingMode || tsConfig . options . target === ScriptTarget . ES5 ) {
127
127
const buildBrowserFeatures = new BuildBrowserFeatures (
128
128
projectRoot ,
129
- tsConfig . options . target || ScriptTarget . ES5 ,
130
129
) ;
131
130
132
131
if ( buildBrowserFeatures . isEs5SupportNeeded ( ) ) {
Original file line number Diff line number Diff line change @@ -101,20 +101,20 @@ export function getSourceMapDevTool(
101
101
* Returns an ES version file suffix to differentiate between various builds.
102
102
*/
103
103
export function getEsVersionForFileName (
104
- scriptTargetOverride : ScriptTarget | undefined ,
104
+ scriptTarget : ScriptTarget | undefined ,
105
105
esVersionInFileName = false ,
106
106
) : string {
107
- if ( ! esVersionInFileName || scriptTargetOverride === undefined ) {
107
+ if ( ! esVersionInFileName || scriptTarget === undefined ) {
108
108
return '' ;
109
109
}
110
110
111
- if ( scriptTargetOverride === ScriptTarget . ESNext ) {
111
+ if ( scriptTarget === ScriptTarget . ESNext ) {
112
112
return '-esnext' ;
113
113
}
114
114
115
- return '-' + ScriptTarget [ scriptTargetOverride ] . toLowerCase ( ) ;
115
+ return '-' + ScriptTarget [ scriptTarget ] . toLowerCase ( ) ;
116
116
}
117
117
118
- export function isPolyfillsEntry ( name : string ) {
118
+ export function isPolyfillsEntry ( name : string ) : boolean {
119
119
return name === 'polyfills' || name === 'polyfills-es5' ;
120
120
}
You can’t perform that action at this time.
0 commit comments