-
Notifications
You must be signed in to change notification settings - Fork 1.4k
feat(router): make dev more like prod #7890
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
Conversation
🦋 Changeset detectedLatest commit: 0a1c70e The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
built with Refined Cloudflare Pages Action⚡ Cloudflare Pages Deployment
|
37f7283
to
6129d83
Compare
6129d83
to
5235122
Compare
packages/qwik-router/src/buildtime/runtime-generation/generate-service-worker.ts
Show resolved
Hide resolved
5235122
to
1f72e73
Compare
commit: |
for some reason, dev mode fails on the docs docs/ pages, it can't resume properly due to vnode mismatch |
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 tested the docs with dev env and it's working fine.
@gioboa
Which means that the DOM doesn't look like what Core expected, which must mean that element that have a |
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 see, let me double check it
still gets core via dev server
this applies to CSR projects. It makes the code simpler and along with Vite's expectations. It is done with the transformIndexHtml hook. Also: - build the optimizer using vite - compile the dev helper scripts - make CSR projects start at /index.html. A starter is provided for this - remove mentions of entry.dev.tsx
- remove separate dev-server which duplicated route processing logic, instead use node adapter - watch routes for changes and reload when needed - make route imports always dynamic (optionally static). This limits the amount of code to load when not all paths are visited, and reduces startup time. - remove .testing condition on double import, the reason was the dev-server importing core separately from the test code Still missing: - transformindexhtml handling - entry.ts support - serviceworker support
also, intercept the writes to the response and transform it as soon as the html head was processed
1f72e73
to
4355c6a
Compare
d40efd8
to
826b120
Compare
826b120
to
60ffa2e
Compare
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.
🔥
This brings our Vite plugins more inline with dev mode in the regular Vite ecosystem: