Skip to content

Commit

Permalink
fix(text-zoom): Lazy load iOS implementation (#735)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Dec 14, 2021
1 parent d378c00 commit 5039a74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion text-zoom/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { registerPlugin } from '@capacitor/core';
import type { TextZoomPlugin } from './definitions';

const TextZoom = registerPlugin<TextZoomPlugin>('TextZoom', {
ios: import('./ios').then(m => new m.TextZoomIOS()),
ios: () => import('./ios').then(m => new m.TextZoomIOS()),
});

export * from './definitions';
Expand Down

0 comments on commit 5039a74

Please sign in to comment.