-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
fix(cli): don't store blob and data urls in the module cache #18261
Conversation
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'm not sure if there's a blob test for this already, but if not could you also test that importing the same blob URL in the same run twice gets the same module?
Something like this:
export let data = 3;
export const setData = d => { data = d; };
Create a blob out of that file, import it once, set data to 4, then import it a second time and verify that the data there is indeed 4.
I'm probably worrying for nothing, but seeing the cache drop out I thought that maybe, just maybe it would also mean that blob URL imports become unique instances.
@aapoalas I'm not sure what you're suggesting to test,
Note that file URLs already opt out of Actually, I've questioned why |
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.
Yeah, I was precisely referring to a test like await import(blobUrl) === await import(blobUrl)
but if we already have prior examples of skipping the cache then it sounds safe enough a change to me.
Looks good to me and nice work! Very nice diff :)
Since this change, the islands in fresh don't build anymore, showing the below error (the error message is not that intelligible though). Maybe fresh was using these removed metadata?
|
…enoland#18261)" This reverts commit b4c61c1.
…18261)" (#18572) This reverts commit b4c61c1. cc @nayeemrmn
…18261)" (#18572) This reverts commit b4c61c1. cc @nayeemrmn
…#18581) Relands #18261 now that lucacasonato/esbuild_deno_loader#54 is landed and used by fresh. Fixes #18260.
Fixes #18260.
Also follows on from #18253.