-
Notifications
You must be signed in to change notification settings - Fork 6
perf: cache postcss processor by compiler.modifiedFiles
#33
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,26 +1 @@ | ||
| body { | ||
| margin: 0; | ||
| color: #fff; | ||
| font-family: Inter, Avenir, Helvetica, Arial, sans-serif; | ||
| background-image: linear-gradient(to bottom, #020917, #101725); | ||
| } | ||
|
|
||
| .content { | ||
| display: flex; | ||
| min-height: 100vh; | ||
| line-height: 1.1; | ||
| text-align: center; | ||
| flex-direction: column; | ||
| justify-content: center; | ||
| } | ||
|
|
||
| .content h1 { | ||
| font-size: 3.6rem; | ||
| font-weight: 700; | ||
| } | ||
|
|
||
| .content p { | ||
| font-size: 1.2rem; | ||
| font-weight: 400; | ||
| opacity: 0.5; | ||
| } | ||
| @tailwind utilities; |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| /** | ||
| * See: {@link https://github.com/tc39/proposal-set-methods | Set Methods for JavaScript} | ||
| */ | ||
| export function isSubsetOf<T>(a: ReadonlySet<T>, b: ReadonlySet<T>): boolean { | ||
| // Node.js v22 will have native implementation. | ||
| if (typeof a.isSubsetOf === 'function') { | ||
| return a.isSubsetOf(b); | ||
| } | ||
|
|
||
| if (a.size > b.size) { | ||
| return false; | ||
| } | ||
|
|
||
| for (const item of a) { | ||
| if (!b.has(item)) { | ||
| return false; | ||
| } | ||
| } | ||
| return true; | ||
| } |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| import { expect, test } from '@playwright/test'; | ||
|
|
||
| import { isSubsetOf } from '../src/Set.prototype.isSubsetOf'; | ||
|
|
||
| test.describe('Set.prototype.isSubsetOf', () => { | ||
| test('subsets', () => { | ||
| const set1 = new Set([1, 2, 3]); | ||
| const set2 = new Set([4, 5, 6]); | ||
| const set3 = new Set([1, 2, 3, 4, 5, 6]); | ||
|
|
||
| expect(isSubsetOf(set1, set2)).toBe(false); | ||
| expect(isSubsetOf(set2, set1)).toBe(false); | ||
| expect(isSubsetOf(set1, set3)).toBe(true); | ||
| expect(isSubsetOf(set2, set3)).toBe(true); | ||
| }); | ||
|
|
||
| test('empty sets', () => { | ||
| const s1 = new Set([]); | ||
| const s2 = new Set([1, 2]); | ||
|
|
||
| expect(isSubsetOf(s1, s2)).toBe(true); | ||
|
|
||
| const s3 = new Set([1, 2]); | ||
| const s4 = new Set([]); | ||
|
|
||
| expect(isSubsetOf(s3, s4)).toBe(false); | ||
|
|
||
| const s5 = new Set([]); | ||
| const s6 = new Set([]); | ||
|
|
||
| expect(isSubsetOf(s5, s6)).toBe(true); | ||
| }); | ||
|
|
||
| test('self', () => { | ||
| const s1 = new Set([1, 2]); | ||
|
|
||
| expect(isSubsetOf(s1, s1)).toBe(true); | ||
| }); | ||
|
|
||
| test('same', () => { | ||
| const s1 = new Set([1, 2]); | ||
| const s2 = new Set([1, 2]); | ||
|
|
||
| expect(isSubsetOf(s1, s2)).toBe(true); | ||
| }); | ||
| }); |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.