Skip to content

Conversation

gioboa
Copy link
Member

@gioboa gioboa commented Oct 7, 2025

CSR or SPA is more understandable then browser-only IMHO.

@gioboa gioboa requested a review from maiieul October 7, 2025 12:12
@gioboa gioboa requested a review from a team as a code owner October 7, 2025 12:12
Copy link

changeset-bot bot commented Oct 7, 2025

⚠️ No Changeset found

Latest commit: 4bb0872

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

pkg-pr-new bot commented Oct 7, 2025

Open in StackBlitz

npm i https://pkg.pr.new/QwikDev/qwik/@qwik.dev/core@8039
npm i https://pkg.pr.new/QwikDev/qwik/@qwik.dev/router@8039
npm i https://pkg.pr.new/QwikDev/qwik/eslint-plugin-qwik@8039
npm i https://pkg.pr.new/QwikDev/qwik/create-qwik@8039

commit: 4bb0872

Copy link
Contributor

github-actions bot commented Oct 7, 2025

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
qwik-docs ✅ Ready (View Log) Visit Preview 4bb0872

qwikVite({ csr: true }),
tsconfigPaths({ root: "." }),
config.mode === "development" &&
viteStaticCopy({
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is needed to resolve
<script async type="module" src="@qwik.dev/core/qwikloader.js"> in dev mode.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is it needed in dev mode?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

without this fix, in dev mode, is not resolving and serving the file correctly.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about using the qwikloader: "inline" prop we just brought back in v1.17.0?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm that seems wrong, vite should be parsing the index.html and resolving the qwikloader.js into a module.
Isn't it working? I thought I tested it.

@gioboa gioboa requested a review from wmertens October 9, 2025 14:03
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Qwik browser-only starter</title>
<title>Qwik SPA starter</title>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm - SPA implies multiple routes, no? Without qwik-router there's no routes...
Technically, it's the CSR starter.

qwikVite({ csr: true }),
tsconfigPaths({ root: "." }),
config.mode === "development" &&
viteStaticCopy({
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm that seems wrong, vite should be parsing the index.html and resolving the qwikloader.js into a module.
Isn't it working? I thought I tested it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants