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.
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
feat: Increase security by virtualizing
$env/static/*
#5825feat: Increase security by virtualizing
$env/static/*
#5825Changes from 6 commits
c751531
5b37e6a
6bd374d
2971593
bf46961
8bc3fa1
dfcd44a
a553813
ee0f975
47f7775
3528aff
c80b102
0441189
5ef4d7c
94dc0da
b6c1766
4e537db
d6957ec
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
there were previous efforts to avoid reading svelte config multiple times, as it may lead to unexpected side effects when it contains TLA initialization code.
To avoid this here we'd either have to steal the ref from kit plugin somehow or move the resolve + load hooks there
cc @benmccann
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.
I thought we could load multiple times as long as we use the same loading helper (just have to make sure the loading helper uses the mtime trick)
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.
I'll let you guys duke this one out as I have no idea one way or the other. I like this as its own plugin (it's just way less confusing and way more obvious what it's doing), but I can move it back into the main plugin if there's a need.
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.
I moved it into the main plugin — if we do get round to creating a helper that allows us to load the config multiple times without penalty then we should, but in the meantime i think it's better that we load it as few times as possible