Skip to content

Commit 4b696c6

Browse files
Fixes #129 Ionic config setup
1 parent f117359 commit 4b696c6

File tree

3 files changed

+7
-22
lines changed

3 files changed

+7
-22
lines changed

src/app-initialize.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/interfaces.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@ export interface IonicGlobal {
3838
asyncQueue?: boolean;
3939
}
4040

41-
export interface IonicWindow extends Window {
42-
Ionic: IonicGlobal;
43-
__zone_symbol__requestAnimationFrame?: (ts: FrameRequestCallback) => number;
44-
}
45-
4641
export interface FrameworkDelegate {
4742
attachViewToDom(
4843
parentElement: HTMLElement,

src/ionic.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { appInitialize } from './app-initialize';
21
import VueImport, { PluginFunction } from 'vue';
3-
import { IonicConfig } from '@ionic/core';
2+
import { IonicConfig, setupConfig } from '@ionic/core';
3+
import { applyPolyfills, defineCustomElements } from '@ionic/core/loader';
44

55
let Vue: typeof VueImport;
66

7-
export const install: PluginFunction<IonicConfig> = (_Vue, config) => {
7+
export const install: PluginFunction<IonicConfig> = async (_Vue, config) => {
88
if (Vue && _Vue === Vue) {
99
if (process.env.NODE_ENV !== 'production') {
1010
console.error(
@@ -15,5 +15,8 @@ export const install: PluginFunction<IonicConfig> = (_Vue, config) => {
1515
}
1616
Vue = _Vue;
1717
Vue.config.ignoredElements.push(/^ion-/);
18-
appInitialize(config);
18+
19+
config && setupConfig(config);
20+
await applyPolyfills();
21+
defineCustomElements(window);
1922
};

0 commit comments

Comments
 (0)