Skip to content

Commit b114ca0

Browse files
committed
docs(moment): update docs to hide moment webpack/rollup work around
1 parent d80935f commit b114ca0

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

src/lib/dl-date-time-picker/dl-date-time-picker.component.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ import {DlDayModelComponent} from './dl-day-model.component';
3030
import {DlHourModelComponent} from './dl-hour-model.component';
3131
import {DlMinuteModelComponent} from './dl-minute-model.component';
3232
import {DlDateTimePickerChange} from './dl-date-time-picker-change';
33+
import * as _moment from 'moment';
34+
import {Moment} from 'moment';
3335

3436
/**
3537
* Work around for moment namespace conflict when used with webpack and rollup.
@@ -44,9 +46,6 @@ import {DlDateTimePickerChange} from './dl-date-time-picker-change';
4446
*
4547
* @internal
4648
**/
47-
48-
import * as _moment from 'moment';
49-
import {Moment} from 'moment';
5049
const moment = _moment;
5150

5251

src/lib/dl-date-time-picker/dl-day-model.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
import {DlModelProvider} from './dl-model-provider';
1111
import {DlDateTimePickerModel} from './dl-date-time-picker-model';
1212
import {Component, SimpleChanges} from '@angular/core';
13+
import * as _moment from 'moment'
14+
1315
/**
1416
* Work around for moment namespace conflict when used with webpack and rollup.
1517
* See https://github.com/dherges/ng-packagr/issues/163
@@ -23,7 +25,6 @@ import {Component, SimpleChanges} from '@angular/core';
2325
*
2426
* @internal
2527
**/
26-
import * as _moment from 'moment';
2728
const moment = _moment;
2829

2930
/**

src/lib/dl-date-time-picker/dl-hour-model.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import {DlModelProvider} from './dl-model-provider';
1111
import {DlDateTimePickerModel} from './dl-date-time-picker-model';
1212
import {Component, SimpleChanges} from '@angular/core';
13+
import * as _moment from 'moment';
1314
/**
1415
* Work around for moment namespace conflict when used with webpack and rollup.
1516
* See https://github.com/dherges/ng-packagr/issues/163
@@ -23,7 +24,6 @@ import {Component, SimpleChanges} from '@angular/core';
2324
*
2425
* @internal
2526
**/
26-
import * as _moment from 'moment';
2727
const moment = _moment;
2828

2929
/**

src/lib/dl-date-time-picker/dl-minute-model.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import {DlModelProvider} from './dl-model-provider';
1111
import {DlDateTimePickerModel} from './dl-date-time-picker-model';
1212
import {Component, SimpleChanges} from '@angular/core';
13+
import * as _moment from 'moment';
1314
/**
1415
* Work around for moment namespace conflict when used with webpack and rollup.
1516
* See https://github.com/dherges/ng-packagr/issues/163
@@ -23,7 +24,6 @@ import {Component, SimpleChanges} from '@angular/core';
2324
*
2425
* @internal
2526
**/
26-
import * as _moment from 'moment';
2727
const moment = _moment;
2828

2929
/**

src/lib/dl-date-time-picker/dl-month-model.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import {DlModelProvider} from './dl-model-provider';
1111
import {DlDateTimePickerModel} from './dl-date-time-picker-model';
1212
import {Component, SimpleChanges} from '@angular/core';
13+
import * as _moment from 'moment';
1314
/**
1415
* Work around for moment namespace conflict when used with webpack and rollup.
1516
* See https://github.com/dherges/ng-packagr/issues/163
@@ -23,7 +24,6 @@ import {Component, SimpleChanges} from '@angular/core';
2324
*
2425
* @internal
2526
**/
26-
import * as _moment from 'moment';
2727
const moment = _moment;
2828

2929
/**

src/lib/dl-date-time-picker/dl-year-model.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
import {DlModelProvider} from './dl-model-provider';
1111
import {DlDateTimePickerModel} from './dl-date-time-picker-model';
1212
import {Component, SimpleChanges} from '@angular/core';
13+
import * as _moment from 'moment';
14+
import {Moment} from 'moment';
1315
/**
1416
* Work around for moment namespace conflict when used with webpack and rollup.
1517
* See https://github.com/dherges/ng-packagr/issues/163
@@ -23,8 +25,6 @@ import {Component, SimpleChanges} from '@angular/core';
2325
*
2426
* @internal
2527
**/
26-
import * as _moment from 'moment';
27-
import {Moment} from 'moment';
2828
const moment = _moment;
2929

3030
/**

0 commit comments

Comments
 (0)