Skip to content

Commit e32fe78

Browse files
committed
fix(material/datepicker): make MatDatepickerIntl tree-shakable
In order to be tree-shakable, services must be marked as `providedIn` and they must not be explicitly referenced in the `providers` of an `NgModule`.
1 parent c41cf48 commit e32fe78

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/material/datepicker/datepicker-module.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import {
2222
MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER,
2323
} from './datepicker-base';
2424
import {MatDatepickerInput} from './datepicker-input';
25-
import {MatDatepickerIntl} from './datepicker-intl';
2625
import {MatDatepickerToggle, MatDatepickerToggleIcon} from './datepicker-toggle';
2726
import {MatMonthView} from './month-view';
2827
import {MatMultiYearView} from './multi-year-view';
@@ -82,6 +81,6 @@ import {MatDatepickerActions, MatDatepickerApply, MatDatepickerCancel} from './d
8281
MatDatepickerCancel,
8382
MatDatepickerApply,
8483
],
85-
providers: [MatDatepickerIntl, MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER],
84+
providers: [MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER],
8685
})
8786
export class MatDatepickerModule {}

0 commit comments

Comments
 (0)