mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
f06b0d9d01
This updates the size checks for Angular CLI version 13.1.3. The increase in size is due to changes in ESBuild.
Before
```js
class bS extends Wl {
constructor(t, n, r, i) {
super(t), (this.component = r);
const o = Is(i + "-" + r.id, r.styles, []);
n.addStyles(o),
(this.contentAttr = "_ngcontent-%COMP%".replace(Gl, i + "-" + r.id)),
(this.hostAttr = "_nghost-%COMP%".replace(Gl, i + "-" + r.id));
}
applyToHost(t) {
super.setAttribute(t, this.hostAttr, "");
}
createElement(t, n) {
const r = super.createElement(t, n);
return super.setAttribute(r, this.contentAttr, ""), r;
}
}
```
Now
```js
class ES extends Wl {
constructor(t, n, r, i) {
super(t), (this.component = r);
const o = Is(i + "-" + r.id, r.styles, []);
n.addStyles(o),
(this.contentAttr = (function _S(e) {
return "_ngcontent-%COMP%".replace(Gl, e);
})(i + "-" + r.id)),
(this.hostAttr = (function CS(e) {
return "_nghost-%COMP%".replace(Gl, e);
})(i + "-" + r.id));
}
applyToHost(t) {
super.setAttribute(t, this.hostAttr, "");
}
createElement(t, n) {
const r = super.createElement(t, n);
return super.setAttribute(r, this.contentAttr, ""), r;
}
}
```
PR Close #44440
72 lines
2.1 KiB
JSON
72 lines
2.1 KiB
JSON
{
|
|
"cli-hello-world": {
|
|
"master": {
|
|
"uncompressed": {
|
|
"runtime": 1083,
|
|
"main": 140067,
|
|
"polyfills": 36964
|
|
}
|
|
}
|
|
},
|
|
"cli-hello-world-ivy-minimal": {
|
|
"master": {
|
|
"uncompressed": {
|
|
"runtime": 1107,
|
|
"main": "TODO(i): temporarily increase the payload size limit from 17597 - this needs to be investigate further what caused the increase.",
|
|
"main": "Likely there is a missing PURE annotation https://github.com/angular/angular/pull/43344",
|
|
"main": "Tracking issue: https://github.com/angular/angular/issues/43568",
|
|
"main": 20378,
|
|
"polyfills": 37250
|
|
}
|
|
}
|
|
},
|
|
"cli-hello-world-ivy-compat": {
|
|
"master": {
|
|
"uncompressed": {
|
|
"runtime": 1105,
|
|
"main": 145783,
|
|
"polyfills": 37248
|
|
}
|
|
}
|
|
},
|
|
"cli-hello-world-ivy-i18n": {
|
|
"master": {
|
|
"uncompressed": {
|
|
"runtime": 929,
|
|
"main": 138435,
|
|
"polyfills": 37933
|
|
}
|
|
}
|
|
},
|
|
"cli-hello-world-lazy": {
|
|
"master": {
|
|
"uncompressed": {
|
|
"runtime": 2812,
|
|
"main": 232617,
|
|
"polyfills": 37244,
|
|
"src_app_lazy_lazy_module_ts": 796
|
|
}
|
|
}
|
|
},
|
|
"forms": {
|
|
"master": {
|
|
"uncompressed": {
|
|
"runtime": 1063,
|
|
"main": 162811,
|
|
"polyfills": 36975
|
|
}
|
|
}
|
|
},
|
|
"hello_world__closure": {
|
|
"master": {
|
|
"uncompressed": {
|
|
"bundle": "TODO(i): temporarily increase the payload size limit from 105779 - this is due to a closure issue related to ESM reexports that still needs to be investigated",
|
|
"bundle": "TODO(i): we should define ngDevMode to false in Closure, but --define only works in the global scope.",
|
|
"bundle": "TODO(i): (FW-2164) TS 3.9 new class shape seems to have broken Closure in big ways. The size went from 169991 to 252338",
|
|
"bundle": "TODO(i): after removal of tsickle from ngc-wrapped / ng_package, we had to switch to SIMPLE optimizations which increased the size from 252338 to 1198917, see PR#37221 and PR#37317 for more info",
|
|
"bundle": 1214857
|
|
}
|
|
}
|
|
}
|
|
}
|