-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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: build time deps optimization, and ensure single crawl end call #12851
Changes from 1 commit
3d01484
959e0cf
b57c885
9ae3e98
1efca7c
475131f
13085c3
c7c9e6c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
let base = `/${self.location.pathname.split('/')[1]}` | ||
if (base === `/worker-entries`) base = '' // relative base | ||
if (base.endsWith('.js') || base === `/worker-entries`) base = '' // for dev | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Started getting a lot of warnings in dev Error: Failed to load url /classic-shared-worker.js/classic.js (resolved id: /classic-shared-worker.js/classic.js). Does the file exist?
❯ loadAndTransform packages/vite/src/node/server/transformRequest.ts:242:22
❯ processTicksAndRejections node:internal/process/task_queues:95:5 I don't know if this is the correct fix, seems the PR is exposing this issue? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems to happen on |
||
|
||
importScripts(`${base}/classic.js`) | ||
|
||
|
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.
registeredIds.length === 0
toseenIds.size === 0
is also needed after #12609