feat: add insertRule batching optimization#21
Merged
jaredLunde merged 3 commits intomainfrom Sep 1, 2022
Merged
Conversation
ani-ps
reviewed
Sep 1, 2022
| | stylisPlugins | `Plugable[]` | No | | An array of Stylis plugins. See: https://www.npmjs.com/package/stylis | | ||
| | prefix | `boolean \| ((key: string, value: any, context: any) => boolean)` | No | `true` | Turns on/off vendor prefixing. When a boolean, all prefixes will be turned on/off. Use a function to define your own prefixes for a given key/value. | | ||
| | container | `HTMLElement` | No | `document.head` | This is the container that `<style>` tags will be injected into when style rules are inserted. | | ||
| | speedy | `boolean` | No | `true` in prod | Uses speedy mode for `<style>` tag insertion. It's the fastest way to insert new style rules, but will make styles uneditable via dev tools in some browsers. | |
Member
Author
There was a problem hiding this comment.
it's undocumented on purpose right now because experimental
Codecov Report
@@ Coverage Diff @@
## main #21 +/- ##
==========================================
- Coverage 98.03% 95.75% -2.29%
==========================================
Files 5 5
Lines 357 353 -4
Branches 112 107 -5
==========================================
- Hits 350 338 -12
- Misses 7 15 +8
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
github-actions bot
pushed a commit
that referenced
this pull request
Sep 1, 2022
# [1.1.0](v1.0.2...v1.1.0) (2022-09-01) ### Features * add insertRule batching optimization ([#21](#21)) ([d460435](d460435))
|
🎉 This PR is included in version 1.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or 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
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.
No description provided.