File tree 4 files changed +8
-8
lines changed
packages/angular_devkit/build_angular/src/angular-cli-files
tests/legacy-cli/e2e/tests/misc
4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ export function getBrowserConfig(wco: WebpackConfigOptions): webpack.Configurati
45
45
entrypoints : generateEntryPoints ( buildOptions ) ,
46
46
deployUrl : buildOptions . deployUrl ,
47
47
sri : buildOptions . subresourceIntegrity ,
48
- noModuleEntrypoints : [ 'polyfills. es5' ] ,
48
+ noModuleEntrypoints : [ 'polyfills- es5' ] ,
49
49
} ) ) ;
50
50
}
51
51
@@ -114,7 +114,7 @@ export function getBrowserConfig(wco: WebpackConfigOptions): webpack.Configurati
114
114
const moduleName = module . nameForCondition ? module . nameForCondition ( ) : '' ;
115
115
116
116
return / [ \\ / ] n o d e _ m o d u l e s [ \\ / ] / . test ( moduleName )
117
- && ! chunks . some ( ( { name } ) => name === 'polyfills' || name === 'polyfills. es5'
117
+ && ! chunks . some ( ( { name } ) => name === 'polyfills' || name === 'polyfills- es5'
118
118
|| globalStylesBundleNames . includes ( name ) ) ;
119
119
} ,
120
120
} ,
Original file line number Diff line number Diff line change @@ -83,9 +83,9 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration {
83
83
// For NON differential loading we want to have 2 polyfill bundles
84
84
if ( buildOptions . es5BrowserSupport
85
85
|| ( buildOptions . es5BrowserSupport === undefined && isEs5SupportNeeded ( projectRoot ) ) ) {
86
- entryPoints [ 'polyfills. es5' ] = [ es5Polyfills ] ;
86
+ entryPoints [ 'polyfills- es5' ] = [ es5Polyfills ] ;
87
87
if ( ! buildOptions . aot ) {
88
- entryPoints [ 'polyfills. es5' ] . push ( es5JitPolyfills ) ;
88
+ entryPoints [ 'polyfills- es5' ] . push ( es5JitPolyfills ) ;
89
89
}
90
90
}
91
91
}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export function generateEntryPoints(
26
26
} ;
27
27
28
28
const entryPoints = [
29
- 'polyfills. es5' ,
29
+ 'polyfills- es5' ,
30
30
'polyfills' ,
31
31
'sw-register' ,
32
32
...extraEntryPoints ( appConfig . styles , 'styles' ) ,
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export default async function () {
16
16
17
17
await writeFile ( 'browserslist' , 'last 2 Chrome versions' ) ;
18
18
await ng ( 'build' ) ;
19
- await expectFileNotToExist ( 'dist/test-project/polyfills. es5.js' ) ;
19
+ await expectFileNotToExist ( 'dist/test-project/polyfills- es5.js' ) ;
20
20
await expectFileToMatch ( 'dist/test-project/index.html' , oneLineTrim `
21
21
<script src="runtime.js"></script>
22
22
<script src="polyfills.js"></script>
@@ -27,10 +27,10 @@ export default async function () {
27
27
28
28
await writeFile ( 'browserslist' , 'IE 10' ) ;
29
29
await ng ( 'build' , `--es5BrowserSupport` ) ;
30
- await expectFileToMatch ( 'dist/test-project/polyfills. es5.js' , 'core-js' ) ;
30
+ await expectFileToMatch ( 'dist/test-project/polyfills- es5.js' , 'core-js' ) ;
31
31
await expectFileToMatch ( 'dist/test-project/index.html' , oneLineTrim `
32
32
<script src="runtime.js"></script>
33
- <script src="polyfills. es5.js" nomodule></script>
33
+ <script src="polyfills- es5.js" nomodule></script>
34
34
<script src="polyfills.js"></script>
35
35
<script src="styles.js"></script>
36
36
<script src="vendor.js"></script>
You can’t perform that action at this time.
0 commit comments