@angular-devkit/build-angular 12.2.4 → 12.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@angular-devkit/build-angular",
3
- "version": "12.2.4",
3
+ "version": "12.2.5",
4
4
  "description": "Angular Webpack Build Facade",
5
5
  "main": "src/index.js",
6
6
  "typings": "src/index.d.ts",
7
7
  "builders": "builders.json",
8
8
  "dependencies": {
9
9
  "@ampproject/remapping": "1.0.1",
10
- "@angular-devkit/architect": "0.1202.4",
11
- "@angular-devkit/build-optimizer": "0.1202.4",
12
- "@angular-devkit/build-webpack": "0.1202.4",
13
- "@angular-devkit/core": "12.2.4",
10
+ "@angular-devkit/architect": "0.1202.5",
11
+ "@angular-devkit/build-optimizer": "0.1202.5",
12
+ "@angular-devkit/build-webpack": "0.1202.5",
13
+ "@angular-devkit/core": "12.2.5",
14
14
  "@babel/core": "7.14.8",
15
15
  "@babel/generator": "7.14.8",
16
16
  "@babel/helper-annotate-as-pure": "7.14.5",
@@ -22,7 +22,7 @@
22
22
  "@babel/template": "7.14.5",
23
23
  "@discoveryjs/json-ext": "0.5.3",
24
24
  "@jsdevtools/coverage-istanbul-loader": "3.0.5",
25
- "@ngtools/webpack": "12.2.4",
25
+ "@ngtools/webpack": "12.2.5",
26
26
  "ansi-colors": "4.1.1",
27
27
  "babel-loader": "8.2.2",
28
28
  "browserslist": "^4.9.1",
@@ -98,7 +98,7 @@ function getDevServerConfig(wco) {
98
98
  },
99
99
  sockPath: path_1.posix.join(servePath, 'sockjs-node'),
100
100
  stats: false,
101
- compress: stylesOptimization.minify || scriptsOptimization,
101
+ compress: false,
102
102
  watchOptions: helpers_1.getWatchOptions(poll),
103
103
  https: getSslConfig(root, wco.buildOptions),
104
104
  overlay: {
@@ -439,11 +439,23 @@ function transformSupportedBrowsersToTargets(supportedBrowsers) {
439
439
  // https://esbuild.github.io/api/#target
440
440
  const esBuildSupportedBrowsers = new Set(['safari', 'firefox', 'edge', 'chrome', 'ios']);
441
441
  for (const browser of supportedBrowsers) {
442
- const [browserName, version] = browser.split(' ');
442
+ let [browserName, version] = browser.split(' ');
443
+ // browserslist uses the name `ios_saf` for iOS Safari whereas esbuild uses `ios`
444
+ if (browserName === 'ios_saf') {
445
+ browserName = 'ios';
446
+ // browserslist also uses ranges for iOS Safari versions but only the lowest is required
447
+ // to perform minimum supported feature checks. esbuild also expects a single version.
448
+ [version] = version.split('-');
449
+ }
443
450
  if (browserName === 'ie') {
444
451
  transformed.push('edge12');
445
452
  }
446
453
  else if (esBuildSupportedBrowsers.has(browserName)) {
454
+ if (browserName === 'safari' && version === 'TP') {
455
+ // esbuild only supports numeric versions so `TP` is converted to a high number (999) since
456
+ // a Technology Preview (TP) of Safari is assumed to support all currently known features.
457
+ version = '999';
458
+ }
447
459
  transformed.push(browserName + version);
448
460
  }
449
461
  }