-
Notifications
You must be signed in to change notification settings - Fork 1.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(optimizer): retain relative paths in extracted code #6326
base: main
Are you sure you want to change the base?
Conversation
❌ Deploy Preview for qwik-insights failed.
|
e9bda50
to
c412f9c
Compare
This fixes this issue right? |
4a2bd34
to
c3f2444
Compare
60a0b16
to
a8d3e57
Compare
a8d3e57
to
546e7f9
Compare
546e7f9
to
656c8b2
Compare
grr the small stuff is also going nowhere. Needs to be the big thing. Work in progress. I need to get dev mode working and then it looks like it will be very very nice |
656c8b2
to
3c540cb
Compare
this fixes imports-of-imports and is also nicer for debugging
cced13c
to
e905d33
Compare
+ remove import-of-import workaround Transforming breaks other vite plugins, slows down dev start and might transform more than needed
The bundler should handle entries. Prefetching can still indicate the full graph to fetch and http2 makes that fast.
Now the bundler can decide which QRLs to host toghether. - chunk URLs now can include the exported attr as `chunk#attr` - manifest generation is now more robust - refactored manifest generation
needs to support the absolute path and ?qrl= query
- support vite base - build qrls on demand
e905d33
to
bce7eed
Compare
@@ -102,10 +102,12 @@ export const qwikLoader = ( | |||
for (const qrl of attrValue.split('\n')) { | |||
const url = new URL(qrl, base); | |||
const href = url.href; | |||
const symbol = url.hash[replace](/^#?([^?[|]*).*$/, '$1') || 'default'; | |||
const match = /^#?(([^#]+)#)?([^?[|]*).*$/.exec(url.hash); |
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.
can we add regexp online editor link. for example https://regexr.com/ lets you also add regexp tests for example https://regexr.com/816es (don't use mine we should make a qwik account with all them saved
fixes imports-of-imports (#5473) properly and has some other small fixes
I had a bigger PR that also removed prebuilding and entries but I am running into trouble with it, so I'm first merging the small stuff.