Skip to content

Global scss: Add global name to files using global for tagging in sideEffects#5126

Merged
dzearing merged 2 commits intomicrosoft:masterfrom
lynamemi:fix-globals
Jun 6, 2018
Merged

Global scss: Add global name to files using global for tagging in sideEffects#5126
dzearing merged 2 commits intomicrosoft:masterfrom
lynamemi:fix-globals

Conversation

@lynamemi
Copy link
Copy Markdown
Collaborator

@lynamemi lynamemi commented Jun 6, 2018

Pull request checklist

[ ] Addresses an existing issue: Fixes #0000
[X] Include a change request file using $ npm run change

Description of changes

The OUIFR package had sideEffects: false set in the package.json to allow tree shaking. On the Fabric website, this resulted in a large number of the example pages losing important styles.

Since most of the example scss files use the :global{} selection wrapper, I added those files to the sideEffects array. Any non-example scss file that also used :global{} got a .global. added to its filename and all global-named files went into the array, also.

Later, we need to convert these files to modular css.

Focus areas to test

(optional)

Microsoft Reviewers: Open in CodeFlow

@lynamemi lynamemi requested review from dzearing and phkuo June 6, 2018 22:25
"module": "lib/index.js",
"sideEffects": false,
"sideEffects": [
"*.global.js",
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double check these file paths...

@dzearing dzearing merged commit a428306 into microsoft:master Jun 6, 2018
@lynamemi lynamemi deleted the fix-globals branch June 7, 2018 00:44
@microsoft microsoft locked as resolved and limited conversation to collaborators Aug 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants