Skip to content

Replace virtual modules with runtime bindings - #4757

Draft
infomiho wants to merge 2 commits into
mainfrom
miho/sdk-bundler-migration
Draft

Replace virtual modules with runtime bindings#4757
infomiho wants to merge 2 commits into
mainfrom
miho/sdk-bundler-migration

Conversation

@infomiho

@infomiho infomiho commented Aug 24, 2026

Copy link
Copy Markdown
Member

Description

Replace server-side virtual user modules with explicit runtime bindings and make the generated Wasp SDK a regular external server dependency.

The generated server now initializes runtime bindings before loading application code, emits server and seed entry points through one multi-entry Rollup build, and lazily loads operations to preserve operation-to-operation imports. The client environment schema uses a dedicated Vite virtual module rather than the old generic virtual-user-module plugin.

This also updates generated package scripts, Docker and Render build commands, compiler coverage, and generated snapshots.

Type of change

  • 🔧 Just code/docs improvement
  • 🐞 Bug fix
  • 🚀 New/improved feature
  • 💥 Breaking change

Checklist

  • I tested my change in a Wasp app to verify that it works as intended.

  • 🧪 Tests and apps:

    • I added unit tests for my change.
    • (if you fixed a bug) I added a regression test for the bug I fixed.
    • (if you added/updated a feature) I added/updated e2e tests in examples/kitchen-sink/e2e-tests.
    • (if you added/updated a feature) I updated the starter templates in waspc/data/Cli/templates, as needed.
    • (if you added/updated a feature) I updated the example apps in examples/, as needed.
      • (if you updated examples/tutorials) I updated the tutorial in the docs (and vice versa).
  • 📜 Documentation:

    • (if you added/updated a feature) I added/updated the documentation in web/docs/.
  • 🆕 Changelog: (if change is more than just code/docs improvement)

    • I updated waspc/ChangeLog.md with a user-friendly description of the change.
    • (if you did a breaking change) I added a step to the current migration guide in web/docs/migration-guides/.
    • I bumped the version in waspc/waspc.cabal to reflect the changes I introduced.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 24, 2026

Copy link
Copy Markdown

Deploying wasp-docs-on-main with  Cloudflare Pages  Cloudflare Pages

Latest commit: a16461c
Status: ✅  Deploy successful!
Preview URL: https://90a5d0b2.wasp-docs-on-main.pages.dev
Branch Preview URL: https://miho-sdk-bundler-migration.wasp-docs-on-main.pages.dev

View logs

@pkg-pr-new

pkg-pr-new Bot commented Aug 24, 2026

Copy link
Copy Markdown

Open in StackBlitz

@wasp.sh/spec

npx https://pkg.pr.new/wasp-lang/wasp/@wasp.sh/spec@4757

@wasp.sh/wasp-cli

npx https://pkg.pr.new/wasp-lang/wasp/@wasp.sh/wasp-cli@4757

@wasp.sh/wasp-cli-darwin-arm64-unknown

npx https://pkg.pr.new/wasp-lang/wasp/@wasp.sh/wasp-cli-darwin-arm64-unknown@4757

@wasp.sh/wasp-cli-darwin-x64-unknown

npx https://pkg.pr.new/wasp-lang/wasp/@wasp.sh/wasp-cli-darwin-x64-unknown@4757

@wasp.sh/wasp-cli-linux-arm64-glibc

npx https://pkg.pr.new/wasp-lang/wasp/@wasp.sh/wasp-cli-linux-arm64-glibc@4757

@wasp.sh/wasp-cli-linux-x64-glibc

npx https://pkg.pr.new/wasp-lang/wasp/@wasp.sh/wasp-cli-linux-x64-glibc@4757

@wasp.sh/wasp-cli-linux-x64-musl

npx https://pkg.pr.new/wasp-lang/wasp/@wasp.sh/wasp-cli-linux-x64-musl@4757

commit: dac5772

@infomiho
infomiho temporarily deployed to railway-deploy-test August 24, 2026 13:36 — with GitHub Actions Inactive
@infomiho
infomiho temporarily deployed to fly-deploy-test August 24, 2026 13:36 — with GitHub Actions Inactive
@infomiho
infomiho force-pushed the miho/sdk-bundler-migration branch from dac5772 to a16461c Compare August 24, 2026 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant