From 5c49033c5c62abc1937b8bf6c18226faf7519a1f Mon Sep 17 00:00:00 2001 From: James Andrews Date: Tue, 4 Oct 2016 11:12:11 +1030 Subject: [PATCH] Explicity provide the names of exported items rather than export *. RollupJS ( A somewhat popular module bundler, now used by Ionic 2 ) require all exports to be explicit, then it will try to optimise what's actually included in the bundle. --- src/index.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/index.ts b/src/index.ts index 295819a..3f6ac2a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,7 @@ -export * from './module'; -export * from './CalendarPipe'; -export * from './DateFormatPipe'; -export * from './DurationPipe'; -export * from './FromUnixPipe'; -export * from './TimeAgoPipe'; -export * from './DifferencePipe'; +export { MomentModule } from './module'; +export { CalendarPipe } from './CalendarPipe'; +export { DateFormatPipe } from './DateFormatPipe'; +export { DurationPipe } from './DurationPipe'; +export { FromUnixPipe } from './FromUnixPipe'; +export { TimeAgoPipe } from './TimeAgoPipe'; +export { DifferencePipe } from './DifferencePipe';