-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat: add source name logging to $inspect.trace
#16060
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 0901a1b The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
What does |
It does the |
I don't think there's any tests for that yet |
Also, is there any reason you removed the proxy version source tag? |
No, just commented it out to understand better, but then forgot to uncomment |
I just realized we should probably tag the sources used in |
This adds name logging to
$inspect.trace
. Currently,$inspect.trace
logs the type of dependency ($state
or$derived
), its current value, and a few stack traces related to it. In this PR, to better understand your dependencies, it includes the name of each dependency— if it's a variable, it'll log its name, and if it's an object property, it'll log the path (egobject.foo.bar.baz[0]
).Probably closes #15954
Before submitting the PR, please make sure you do the following
feat:
,fix:
,chore:
, ordocs:
.packages/svelte/src
, add a changeset (npx changeset
).Tests and linting
pnpm test
and lint the project withpnpm lint