File tree Expand file tree Collapse file tree 5 files changed +17
-2
lines changed
libs/fabric/src/lib/components Expand file tree Collapse file tree 5 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 44import { registerElement } from '@angular-react/core' ;
55import { CommonModule } from '@angular/common' ;
66import { NgModule , NO_ERRORS_SCHEMA } from '@angular/core' ;
7+ import * as CalendarCss from 'office-ui-fabric-react/lib-amd/components/Calendar/Calendar.scss' ;
78import { Calendar } from 'office-ui-fabric-react' ;
9+ import { noop } from '../../utils/noop' ;
810import { FabCalendarComponent } from './calendar.component' ;
911
12+ // Dummy action to force CalendarCss to load and not be tree-shaken away.
13+ noop ( CalendarCss ) ;
14+
1015const components = [ FabCalendarComponent ] ;
1116
1217@NgModule ( {
Original file line number Diff line number Diff line change 44import { registerElement } from '@angular-react/core' ;
55import { CommonModule } from '@angular/common' ;
66import { NgModule , NO_ERRORS_SCHEMA } from '@angular/core' ;
7+ import * as OverflowSetCss from 'office-ui-fabric-react/lib-amd/components/OverflowSet/OverflowSet.scss' ;
78import { CommandBar } from 'office-ui-fabric-react' ;
9+ import { noop } from '../../utils/noop' ;
810import { FabContextualMenuModule } from '../contextual-menu/contextual-menu.module' ;
911import { FabCommandBarComponent } from './command-bar.component' ;
1012import {
@@ -18,6 +20,9 @@ import {
1820 CommandBarOverflowItemsDirective ,
1921} from './directives/command-bar-items.directives' ;
2022
23+ // Dummy action to force OverflowSetCss to load and not be tree-shaken away.
24+ noop ( OverflowSetCss ) ;
25+
2126const components = [
2227 FabCommandBarComponent ,
2328 CommandBarItemsDirective ,
Original file line number Diff line number Diff line change @@ -5,8 +5,13 @@ import { registerElement } from '@angular-react/core';
55import { CommonModule } from '@angular/common' ;
66import { NgModule , NO_ERRORS_SCHEMA } from '@angular/core' ;
77import { DatePicker } from 'office-ui-fabric-react' ;
8+ import * as CalendarCss from 'office-ui-fabric-react/lib-amd/components/Calendar/Calendar.scss' ;
9+ import { noop } from '../../utils/noop' ;
810import { FabDatePickerComponent } from './date-picker.component' ;
911
12+ // Dummy action to force CalendarCss to load and not be tree-shaken away.
13+ noop ( CalendarCss ) ;
14+
1015const components = [ FabDatePickerComponent ] ;
1116
1217@NgModule ( {
Original file line number Diff line number Diff line change 44import { registerElement } from '@angular-react/core' ;
55import { CommonModule } from '@angular/common' ;
66import { NgModule , NO_ERRORS_SCHEMA } from '@angular/core' ;
7- import * as BasePickerCss from 'office-ui-fabric-react' ;
7+ import * as BasePickerCss from 'office-ui-fabric-react/lib-amd/components/pickers/BasePicker.scss ' ;
88import { BasePicker } from 'office-ui-fabric-react' ;
99import { noop } from '../../../utils/noop' ;
1010
Original file line number Diff line number Diff line change 44import { registerElement } from '@angular-react/core' ;
55import { CommonModule } from '@angular/common' ;
66import { NgModule , NO_ERRORS_SCHEMA } from '@angular/core' ;
7- import * as TagItemCss from 'office-ui-fabric-react' ;
7+ import * as TagItemCss from 'office-ui-fabric-react/lib-amd/components/pickers/TagPicker/TagItem.scss ' ;
88import { TagPicker } from 'office-ui-fabric-react' ;
99import { noop } from '../../../utils/noop' ;
1010import { FabBasePickerModule } from '../base-picker/base-picker.module' ;
You can’t perform that action at this time.
0 commit comments