Skip to content

Commit

Permalink
feat(package): changed the way moment is imported (#1556)
Browse files Browse the repository at this point in the history
* Fix rollup error.

Rollup cannot process `import * as moment from 'moment'`, instead `import moment from 'moment'` should work.
See rollup/rollup#670

* fix typescript compilation
  • Loading branch information
jimmytheneutrino authored and valorkin committed Mar 9, 2017
1 parent 05c2abf commit 27a0229
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/datepicker/date-formatter.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as moment from 'moment';
import moment from 'moment';

export class DateFormatter {
public format(date:Date, format:string):string {
Expand Down
1 change: 1 addition & 0 deletions src/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"declaration": true,
"skipLibCheck": false,
"stripInternal": true,
"allowSyntheticDefaultImports": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"lib": ["dom", "es6"],
Expand Down

0 comments on commit 27a0229

Please sign in to comment.