Skip to content

Commit cc35ebd

Browse files
author
Angular Builds
committed
b893a6a refactor: remove workarounds for Safari 14 and 15
1 parent b84acc4 commit cc35ebd

File tree

4 files changed

+10
-35
lines changed

4 files changed

+10
-35
lines changed

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
22
"name": "@angular-devkit/build-angular",
3-
"version": "19.0.0-next.12+sha-ebc6aa6",
3+
"version": "19.0.0-next.12+sha-b893a6a",
44
"description": "Angular Webpack Build Facade",
55
"main": "src/index.js",
66
"typings": "src/index.d.ts",
77
"builders": "builders.json",
88
"dependencies": {
99
"@ampproject/remapping": "2.3.0",
10-
"@angular-devkit/architect": "github:angular/angular-devkit-architect-builds#ebc6aa6",
11-
"@angular-devkit/build-webpack": "github:angular/angular-devkit-build-webpack-builds#ebc6aa6",
12-
"@angular-devkit/core": "github:angular/angular-devkit-core-builds#ebc6aa6",
13-
"@angular/build": "github:angular/angular-build-builds#ebc6aa6",
10+
"@angular-devkit/architect": "github:angular/angular-devkit-architect-builds#b893a6a",
11+
"@angular-devkit/build-webpack": "github:angular/angular-devkit-build-webpack-builds#b893a6a",
12+
"@angular-devkit/core": "github:angular/angular-devkit-core-builds#b893a6a",
13+
"@angular/build": "github:angular/angular-build-builds#b893a6a",
1414
"@babel/core": "7.25.8",
1515
"@babel/generator": "7.25.7",
1616
"@babel/helper-annotate-as-pure": "7.25.7",
@@ -21,7 +21,7 @@
2121
"@babel/preset-env": "7.25.8",
2222
"@babel/runtime": "7.25.7",
2323
"@discoveryjs/json-ext": "0.6.2",
24-
"@ngtools/webpack": "github:angular/ngtools-webpack-builds#ebc6aa6",
24+
"@ngtools/webpack": "github:angular/ngtools-webpack-builds#b893a6a",
2525
"@vitejs/plugin-basic-ssl": "1.1.0",
2626
"ansi-colors": "4.1.3",
2727
"autoprefixer": "10.4.20",
@@ -70,7 +70,7 @@
7070
"@angular/localize": "^19.0.0-next.0",
7171
"@angular/platform-server": "^19.0.0-next.0",
7272
"@angular/service-worker": "^19.0.0-next.0",
73-
"@angular/ssr": "github:angular/angular-ssr-builds#ebc6aa6",
73+
"@angular/ssr": "github:angular/angular-ssr-builds#b893a6a",
7474
"@web/test-runner": "^0.19.0",
7575
"browser-sync": "^3.0.2",
7676
"jest": "^29.5.0",
@@ -91,7 +91,7 @@
9191
"@angular/service-worker": {
9292
"optional": true
9393
},
94-
"@angular/ssr": "github:angular/angular-ssr-builds#ebc6aa6",
94+
"@angular/ssr": "github:angular/angular-ssr-builds#b893a6a",
9595
"@web/test-runner": {
9696
"optional": true
9797
},

src/tools/babel/presets/application.js

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,6 @@ const load_esm_1 = require("../../../utils/load-esm");
2020
* Cached instance of the compiler-cli linker's needsLinking function.
2121
*/
2222
let needsLinking;
23-
/**
24-
* List of browsers which are affected by a WebKit bug where class field
25-
* initializers might have incorrect variable scopes.
26-
*
27-
* See: https://github.com/angular/angular-cli/issues/24355#issuecomment-1333477033
28-
* See: https://github.com/WebKit/WebKit/commit/e8788a34b3d5f5b4edd7ff6450b80936bff396f2
29-
*/
30-
let safariClassFieldScopeBugBrowsers;
3123
function createI18nDiagnostics(reporter) {
3224
const diagnostics = new (class {
3325
messages = [];
@@ -109,29 +101,12 @@ function default_1(api, options) {
109101
// However, this doesn't effect libraries and hence we use preset-env to downlevel ES features
110102
// based on the supported browsers in browserslist.
111103
if (options.supportedBrowsers) {
112-
const includePlugins = [];
113-
if (safariClassFieldScopeBugBrowsers === undefined) {
114-
const browserslist = require('browserslist');
115-
safariClassFieldScopeBugBrowsers = new Set(browserslist([
116-
// Safari <15 is technically not supported via https://angular.dev/reference/versions#browser-support
117-
// but we apply the workaround if forcibly selected.
118-
'Safari <=15',
119-
'iOS <=15',
120-
]));
121-
}
122-
// If a Safari browser affected by the class field scope bug is selected, we
123-
// downlevel class properties by ensuring the class properties Babel plugin
124-
// is always included- regardless of the preset-env targets.
125-
if (options.supportedBrowsers.some((b) => safariClassFieldScopeBugBrowsers.has(b))) {
126-
includePlugins.push('@babel/plugin-proposal-class-properties', '@babel/plugin-proposal-private-methods');
127-
}
128104
presets.push([
129105
require('@babel/preset-env').default,
130106
{
131107
bugfixes: true,
132108
modules: false,
133109
targets: options.supportedBrowsers,
134-
include: includePlugins,
135110
exclude: ['transform-typeof-symbol'],
136111
},
137112
]);

src/utils/normalize-cache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
1010
exports.normalizeCacheOptions = normalizeCacheOptions;
1111
const node_path_1 = require("node:path");
1212
/** Version placeholder is replaced during the build process with actual package version */
13-
const VERSION = '19.0.0-next.12+sha-ebc6aa6';
13+
const VERSION = '19.0.0-next.12+sha-b893a6a';
1414
function hasCacheMetadata(value) {
1515
return (!!value &&
1616
typeof value === 'object' &&

uniqueId

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Tue Oct 22 2024 17:04:35 GMT+0000 (Coordinated Universal Time)
1+
Tue Oct 22 2024 17:22:57 GMT+0000 (Coordinated Universal Time)

0 commit comments

Comments
 (0)