-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf(fela): use Stylis for prefixing #12289
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Asset size changesUnable to find bundle size details for Baseline commit: 4552dcc Possible causes
Recommendations
|
Perf AnalysisNo significant results to display. All results
Perf Analysis (Fluent)Perf comparison
Perf tests with no regressions
|
2 tasks
…om/OfficeDev/office-ui-fabric-react into chore/fela-enhancer � Conflicts: � packages/fluentui/react/package.json � packages/fluentui/react/src/utils/felaRenderer.tsx
…c-react into chore/fela-enhancer
miroslavstastny
approved these changes
Mar 23, 2020
packages/fluentui/CHANGELOG.md
Outdated
@@ -43,6 +43,9 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm | |||
- Expose `contentWrapper` shorthand from `AccordionTitle` @silviuavram ([#12265](https://github.com/OfficeDev/office-ui-fabric-react/pull/12265)) | |||
- Add `disabled` versions for `Dropdown` and `Input` @silviuavram ([#12250](https://github.com/OfficeDev/office-ui-fabric-react/pull/12250)) | |||
|
|||
### Performance |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also add an entry to breaking changes
…om/microsoft/fluentui into chore/fela-enhancer � Conflicts: � packages/fluentui/react-northstar/test/specs/utils/__snapshots__/felaRenderer-test.tsx.snap
2 tasks
…om/microsoft/fluentui into chore/fela-enhancer � Conflicts: � packages/fluentui/CHANGELOG.md
…om/microsoft/fluentui into chore/fela-enhancer � Conflicts: � packages/fluentui/CHANGELOG.md
DuanShaolong
pushed a commit
to DuanShaolong/fluentui
that referenced
this pull request
Apr 27, 2020
* perf: try stylis for prefixing * fix import * reset lock to master * wip * final updates * add changelog entry * fix grid usages * return gap back * update snapshot after merge * add stylis to approvedPackages.ts * update changelog * fix changelog * fix type
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull request checklist
$ yarn change
What ❓
This PR introduces Stylis for vendor prefixing job instead of
fela-plugin-prefixer
to get performance benefits.BREAKING CHANGES
CSS Grid is not prefixed anymore
Our previous prefixing was not ideal, too. The biggest bummer here that not all features can be resolved with prefixing for IE11, especially with
auto
sizing, i.e. each case with CSS Grid should be handled manually even now.Before
After
Autoprefixer playground can be also useful.
linear-gradient()
is not prefixed anymoreTo archive previous behavior usage fallback values feature:
background-clip
is not prefixed anymorePrevious prefixing was not correct:
Should be:
cross-fade()
is not prefixed anymoreIt's not supported in IE11.
Works only with a prefix in Chrome.
Performance 🐎
It's faster than by Fela nature as the plugin operates with
renderRule()
: Fela will run plugins on everyrenderRule()
call, but,_emitChange()
will be called only for new CSS rules:It will be easier to understand with CodeSandbox that shows this: https://codesandbox.io/s/vigorous-fire-jhzkq
Before
After 🔽 ~28%
Microsoft Reviewers: Open in CodeFlow