Skip to content

Commit 4cf5b22

Browse files
author
Lion Huang
committed
SCSS files should not be excluded
1 parent 8c0e24c commit 4cf5b22

File tree

5 files changed

+17
-2
lines changed

5 files changed

+17
-2
lines changed

libs/fabric/src/lib/components/calendar/calendar.module.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@
44
import { registerElement } from '@angular-react/core';
55
import { CommonModule } from '@angular/common';
66
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
7+
import * as CalendarCss from 'office-ui-fabric-react/lib-amd/components/Calendar/Calendar.scss';
78
import { Calendar } from 'office-ui-fabric-react';
9+
import { noop } from '../../utils/noop';
810
import { FabCalendarComponent } from './calendar.component';
911

12+
// Dummy action to force CalendarCss to load and not be tree-shaken away.
13+
noop(CalendarCss);
14+
1015
const components = [FabCalendarComponent];
1116

1217
@NgModule({

libs/fabric/src/lib/components/command-bar/command-bar.module.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
import { registerElement } from '@angular-react/core';
55
import { CommonModule } from '@angular/common';
66
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
7+
import * as OverflowSetCss from 'office-ui-fabric-react/lib-amd/components/OverflowSet/OverflowSet.scss';
78
import { CommandBar } from 'office-ui-fabric-react';
9+
import { noop } from '../../utils/noop';
810
import { FabContextualMenuModule } from '../contextual-menu/contextual-menu.module';
911
import { FabCommandBarComponent } from './command-bar.component';
1012
import {
@@ -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+
2126
const components = [
2227
FabCommandBarComponent,
2328
CommandBarItemsDirective,

libs/fabric/src/lib/components/date-picker/date-picker.module.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@ import { registerElement } from '@angular-react/core';
55
import { CommonModule } from '@angular/common';
66
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
77
import { 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';
810
import { FabDatePickerComponent } from './date-picker.component';
911

12+
// Dummy action to force CalendarCss to load and not be tree-shaken away.
13+
noop(CalendarCss);
14+
1015
const components = [FabDatePickerComponent];
1116

1217
@NgModule({

libs/fabric/src/lib/components/pickers/base-picker/base-picker.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import { registerElement } from '@angular-react/core';
55
import { CommonModule } from '@angular/common';
66
import { 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';
88
import { BasePicker } from 'office-ui-fabric-react';
99
import { noop } from '../../../utils/noop';
1010

libs/fabric/src/lib/components/pickers/tag-picker/tag-picker.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import { registerElement } from '@angular-react/core';
55
import { CommonModule } from '@angular/common';
66
import { 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';
88
import { TagPicker } from 'office-ui-fabric-react';
99
import { noop } from '../../../utils/noop';
1010
import { FabBasePickerModule } from '../base-picker/base-picker.module';

0 commit comments

Comments
 (0)