mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
perf(angular): bundle size improvements for angular (#16966)
This commit is contained in:
@@ -16,11 +16,15 @@
|
||||
"pwa"
|
||||
],
|
||||
"main": "dist/index.js",
|
||||
"module": "dist/esm/es5/index.js",
|
||||
"unpkg": "dist/ionic.js",
|
||||
"module": "dist/esm/index.js",
|
||||
"es2015": "dist/esm/es2017/index.js",
|
||||
"es2017": "dist/esm/es2017/index.js",
|
||||
"jsnext:main": "dist/esm/es2017/index.js",
|
||||
"sideEffects": false,
|
||||
"types": "dist/types/interface.d.ts",
|
||||
"collection": "dist/collection/collection-manifest.json",
|
||||
"webComponents": "dist/web-components.json",
|
||||
"unpkg": "dist/ionic.js",
|
||||
"files": [
|
||||
"dist/",
|
||||
"css/",
|
||||
@@ -30,7 +34,7 @@
|
||||
"ionicons": "4.5.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@stencil/core": "0.16.2-2",
|
||||
"@stencil/core": "0.16.2",
|
||||
"@stencil/sass": "0.1.1",
|
||||
"@stencil/utils": "latest",
|
||||
"@types/jest": "^23.3.1",
|
||||
|
||||
@@ -27,16 +27,16 @@ export function startHardwareBackButton(win: Window) {
|
||||
|
||||
if (handlers.length > 0) {
|
||||
let selectedPriority = Number.MIN_SAFE_INTEGER;
|
||||
let handler: Handler | undefined;
|
||||
handlers.forEach(h => {
|
||||
if (h.priority >= selectedPriority) {
|
||||
selectedPriority = h.priority;
|
||||
handler = h.handler;
|
||||
let selectedHandler: Handler | undefined;
|
||||
handlers.forEach(({ priority, handler }) => {
|
||||
if (priority >= selectedPriority) {
|
||||
selectedPriority = priority;
|
||||
selectedHandler = handler;
|
||||
}
|
||||
});
|
||||
|
||||
busy = true;
|
||||
executeAction(handler).then(() => busy = false);
|
||||
executeAction(selectedHandler).then(() => busy = false);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -82,6 +82,7 @@ export const config: Config = {
|
||||
useDirectives: false,
|
||||
componentCorePackage: '@ionic/core',
|
||||
directivesProxyFile: '../angular/src/directives/proxies.ts',
|
||||
directivesUtilsFile: '../angular/src/directives/proxies-utils.ts',
|
||||
directivesArrayFile: '../angular/src/directives/proxies-list.txt',
|
||||
excludeComponents: [
|
||||
// overlays
|
||||
|
||||
Reference in New Issue
Block a user