Skip to content

Commit ec21ae1

Browse files
devversionkara
authored andcommitted
chore(gestures): fix treeshaking for core (#2447)
Closes #2401
1 parent eb96b0c commit ec21ae1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/lib/core/core.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ export {ScrollDispatcher} from './overlay/scroll/scroll-dispatcher';
5555

5656
// Gestures
5757
export {GestureConfig} from './gestures/gesture-config';
58-
export * from './gestures/gesture-annotations';
58+
// Explicitly specify the interfaces which should be re-exported, because if everything
59+
// is re-exported, module bundlers may run into issues with treeshaking.
60+
export {HammerInput, HammerManager} from './gestures/gesture-annotations';
5961

6062
// Ripple
6163
export {MdRipple, MdRippleModule} from './ripple/ripple';
@@ -105,7 +107,7 @@ export * from './compatibility/default-mode';
105107
// Animation
106108
export * from './animation/animation';
107109

108-
// Coersion
110+
// Coercion
109111
export {coerceBooleanProperty} from './coercion/boolean-property';
110112
export {coerceNumberProperty} from './coercion/number-property';
111113

0 commit comments

Comments
 (0)