-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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): transform code incrementally #6326
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 |
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
this pr #6017 will effect this one |
@PatrickJS actually I think it supercedes it - I think the problem in dev mode is chunk sources from unknown parents and this solves that. Although a quick fix would be to add the prefix in the existing vite-server.ts |
2f0f17a
to
994d30d
Compare
commit: @builder.io/qwik
@builder.io/qwik-city
eslint-plugin-qwik
create-qwik
|
6b09472
to
d678a5c
Compare
+ remove import-of-import workaround Transforming breaks other vite plugins, slows down dev start and might transform more than needed
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
d678a5c
to
e6e4277
Compare
closing in favor of #6670 |
This builds on top of #6539 (which was first part of this).
Qwik should not split files before other build plugins had a chance to change the code.
The problem is that Qwik outputs "entry files" that contain multiple QRL segments, possibly from several different files, and that Rollup doesn't allow changing a file once it was loaded.
So this PR will need to enforce ordering. Not done yet.