Skip to content

Commit 23af9eb

Browse files
don't build for buildEs5
1 parent 84233bb commit 23af9eb

File tree

3 files changed

+13
-16
lines changed

3 files changed

+13
-16
lines changed

core/stencil.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,6 @@ export const config: Config = {
243243
// },
244244
...getAngularOutputTargets(),
245245
],
246-
buildEs5: 'prod',
247246
testing: {
248247
moduleNameMapper: {
249248
"@utils/test": ["<rootDir>/src/utils/test/utils"],

packages/angular/src/app-initialize.ts

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { NgZone } from '@angular/core';
22
import type { Config, IonicWindow } from '@ionic/angular/common';
33
import { raf } from '@ionic/angular/common';
44
import { setupConfig } from '@ionic/core';
5-
import { applyPolyfills, defineCustomElements } from '@ionic/core/loader';
5+
import { defineCustomElements } from '@ionic/core/loader';
66

77
// TODO(FW-2827): types
88

@@ -18,19 +18,17 @@ export const appInitialize = (config: Config, doc: Document, zone: NgZone) => {
1818
const aelFn =
1919
'__zone_symbol__addEventListener' in (doc.body as any) ? '__zone_symbol__addEventListener' : 'addEventListener';
2020

21-
return applyPolyfills().then(() => {
22-
return defineCustomElements(win, {
23-
exclude: ['ion-tabs'],
24-
syncQueue: true,
25-
raf,
26-
jmp: (h: any) => zone.runOutsideAngular(h),
27-
ael(elm, eventName, cb, opts) {
28-
(elm as any)[aelFn](eventName, cb, opts);
29-
},
30-
rel(elm, eventName, cb, opts) {
31-
elm.removeEventListener(eventName, cb, opts);
32-
},
33-
});
21+
return defineCustomElements(win, {
22+
exclude: ['ion-tabs'],
23+
syncQueue: true,
24+
raf,
25+
jmp: (h: any) => zone.runOutsideAngular(h),
26+
ael(elm, eventName, cb, opts) {
27+
(elm as any)[aelFn](eventName, cb, opts);
28+
},
29+
rel(elm, eventName, cb, opts) {
30+
elm.removeEventListener(eventName, cb, opts);
31+
},
3432
});
3533
}
3634
};

packages/angular/test/apps/ng19/e2e/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"compilerOptions": {
44
"outDir": "../out-tsc/e2e",
55
"module": "commonjs",
6-
"target": "es5",
6+
"target": "ES2022",
77
"types": ["cypress", "node"]
88
},
99
"include": [

0 commit comments

Comments
 (0)