-
Notifications
You must be signed in to change notification settings - Fork 7
feat: add preload/build analysis tooling and richer devtools instrumentation #93
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 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
b35565b
feat(performance): add performance overview and component details
JerryWu1234 953e059
feat(preloads): implement preload view model and filtering logic
JerryWu1234 1ed112d
add change
JerryWu1234 be37d5d
chore: update .gitignore, bump version to 0.2.8, and enhance Inspect …
JerryWu1234 7fbc30d
feat: enhance Qwik development tools with build analysis and SSR perf…
JerryWu1234 5ccb7c3
feat: enhance Qwik development tools with build analysis and SSR perf…
JerryWu1234 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
File renamed without changes.
File renamed without changes.
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,9 @@ | ||
| --- | ||
| '@qwik.dev/devtools': patch | ||
| --- | ||
|
|
||
| chore: update .gitignore, pnpm-lock.yaml, and add Qwik development documentation | ||
|
|
||
| - Updated .gitignore to include new patterns for cursor skills and Qwik devtools. | ||
| - Modified pnpm-lock.yaml to add new dependencies including rollup-plugin-visualizer and define-lazy-prop. | ||
| - Introduced AGENTS.md and SKILL.md for Qwik core development guidelines, detailing architecture, best practices, and mandatory workflows. | ||
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
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
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,14 @@ | ||
| import { target } from './shared'; | ||
|
|
||
| type GlobalStore = Record<string, unknown>; | ||
|
|
||
| const globalStore = target as unknown as GlobalStore; | ||
|
|
||
| export function createGlobalAccessor<T>(key: string) { | ||
| return { | ||
| get: () => globalStore[key] as T, | ||
| set: (value: T) => { | ||
| globalStore[key] = value; | ||
| }, | ||
| }; | ||
| } |
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,24 @@ | ||
| import SuperJSON from 'superjson'; | ||
| import { createBirpc } from 'birpc'; | ||
|
|
||
| interface RpcChannel { | ||
| post: (serialized: string) => void; | ||
| on: (handler: (serialized: string) => void) => void; | ||
| } | ||
|
|
||
| const RPC_TIMEOUT = 120_000; | ||
|
|
||
| function parseRpcPayload(payload: unknown) { | ||
| return SuperJSON.parse(String(payload)); | ||
| } | ||
|
|
||
| export function createSerializedRpc< | ||
| RemoteFunctions extends object, | ||
| LocalFunctions extends object, | ||
| >(functions: LocalFunctions, channel: RpcChannel) { | ||
| return createBirpc<RemoteFunctions, LocalFunctions>(functions, { | ||
| post: (data) => channel.post(SuperJSON.stringify(data)), | ||
| on: (handler) => channel.on((data) => handler(parseRpcPayload(data))), | ||
| timeout: RPC_TIMEOUT, | ||
| }); | ||
| } |
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.
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.