Skip to content

feat: refactor build configuration #7748

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

Merged
merged 9 commits into from
Jul 21, 2025
Merged

feat: refactor build configuration #7748

merged 9 commits into from
Jul 21, 2025

Conversation

wmertens
Copy link
Member

@wmertens wmertens commented Jul 21, 2025

Remove the unnecessary qwikRouterConfig prop drilling, and make trailingSlash a build constant, clean up vite config normalization, clean up entry file provisioning, try harder to find client manifest in ssr build, and move dev qrl symbolMapper into core.

Also, rename the /static in router to /ssg so that it's clearer what it's for

wmertens added 6 commits July 21, 2025 14:01
it is imported internally but can still be overridden should someone be doing that
we only need to provide default inputs when none are provided
also remove the workaround that we needed in core for chunk filenames
we don't have a qrl mapping in dev because there's no manifest, so instead we make parseable qrl segment filenames
- saner default input handling
- do not write q-manifest to temp dir
- try reading manifest on every platform that has the `node:fs` module
@wmertens wmertens requested review from a team as code owners July 21, 2025 12:06
Copy link

changeset-bot bot commented Jul 21, 2025

🦋 Changeset detected

Latest commit: b1aaee4

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

Copy link
Contributor

github-actions bot commented Jul 21, 2025

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

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

@wmertens wmertens changed the base branch from useqwikrouter to build/v2 July 21, 2025 13:25
@Varixo Varixo requested a review from Copilot July 21, 2025 13:56
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This is a comprehensive refactoring of the build configuration for Qwik applications that removes the deprecated useQwikRouter functionality and introduces several key improvements to the build system. The refactoring focuses on simplifying the build process, improving SSG (Static Site Generation) capabilities, and streamlining router configuration.

  • Removal of qwikRouterConfig parameter from router creation, making it automatically resolved
  • Renaming of Static Site Generation from "static" to "ssg" for better clarity
  • Simplification of build input handling and manifest management in the Vite plugin

Reviewed Changes

Copilot reviewed 147 out of 156 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
starters/dev-server.ts Removes qwikRouterConfig import and parameter from router creation
starters/apps//src/entry..tsx Updates all starter app entry points to remove qwikRouterConfig
packages/qwik-router/src/ssg/ Renames and refactors static generation from "static" to "ssg"
packages/qwik/src/optimizer/src/plugins/vite.ts Major refactoring of build configuration and input handling
packages/qwik/src/server/platform.ts Improves dev mode symbol mapping

Copy link

pkg-pr-new bot commented Jul 21, 2025

Open in StackBlitz

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

commit: b1aaee4

Copy link
Member

@Varixo Varixo left a comment

Choose a reason for hiding this comment

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

LGTM

@wmertens wmertens merged commit 358cec6 into build/v2 Jul 21, 2025
19 checks passed
@wmertens wmertens deleted the v2-router-things branch July 21, 2025 14:02
@Varixo Varixo moved this from Backlog to Done in Qwik Development Jul 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants