Skip to content

Enable webdev flags in Jaspr#799

Merged
schultek merged 10 commits into
schultek:feat/hotreloadfrom
Markzipan:ddc_experiments
May 9, 2026
Merged

Enable webdev flags in Jaspr#799
schultek merged 10 commits into
schultek:feat/hotreloadfrom
Markzipan:ddc_experiments

Conversation

@Markzipan
Copy link
Copy Markdown

jaspr serve --module-format=ddc enables the new DDC module system, while jaspr serve --web-hot-reload enables DDC hot reload (which uses the backend frontend server implementation).

This is for test purposes as I iterate on some ongoing issues.

@docs-page
Copy link
Copy Markdown

docs-page Bot commented Apr 21, 2026

To view this pull requests documentation preview, visit the following URL:

docs.page/schultek/jaspr~799

Documentation is deployed and generated using docs.page.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 21, 2026

Package Version Report

No packages have been updated.

@schultek
Copy link
Copy Markdown
Owner

@Markzipan is there a specific setup (dart sdk / build_web_compilers version) required to test this?

When I try to run this I only get a bunch of AssetNotFoundExceptions from build_web_compilers:ddc.

@schultek
Copy link
Copy Markdown
Owner

schultek commented Apr 28, 2026

Looks like this fails because the web/main.client.dart entrypoint somehow can't be found during the DdcFrontendServerBuilder:

BUILDER] [WARNING] build_web_compilers:ddc (lazy) on jaspr_riverpod|lib/src/builders.ddc.module:
[BUILDER] [WARNING] AssetNotFoundException: package_riverpod|web/main.client.dart
[BUILDER] [WARNING] build_web_compilers:ddc (lazy) on jaspr_riverpod|lib/src/builders.ddc.module:
[BUILDER] [WARNING] #0      SingleStepReaderWriter.digest (package:build_runner/src/build/single_step_reader_writer.dart:231:7)
[BUILDER] [WARNING] <asynchronous suspension>
[BUILDER] [WARNING] #1      ScratchSpace.ensureAssets.<anonymous closure> (package:scratch_space/src/scratch_space.dart:119:26)
[BUILDER] [WARNING] <asynchronous suspension>
[BUILDER] [WARNING] #2      Future.wait.<anonymous closure> (dart:async/future.dart:546:21)
[BUILDER] [WARNING] <asynchronous suspension>
[BUILDER] [WARNING] #3      DdcFrontendServerBuilder._compile (package:build_web_compilers/src/ddc_frontend_server_builder.dart:77:5)
[BUILDER] [WARNING] <asynchronous suspension>
[BUILDER] [WARNING] #4      DdcFrontendServerBuilder.build (package:build_web_compilers/src/ddc_frontend_server_builder.dart:43:7)
[BUILDER] [WARNING] <asynchronous suspension>
[BUILDER] [WARNING] #5      runBuilder.buildForInput (package:build_runner/src/build/run_builder.dart:85:7)
[BUILDER] [WARNING] <asynchronous suspension>
[BUILDER] [WARNING] #6      Future.wait.<anonymous closure> (dart:async/future.dart:546:21)
[BUILDER] [WARNING] <asynchronous suspension>
[BUILDER] [WARNING] #7      BuildLogLogger.scopeLogAsync.<anonymous closure> (package:build_runner/src/logging/build_log_logger.dart:58:13)

This file is generated by an earlier jaspr builder. Will try to dig deeper

@Markzipan
Copy link
Copy Markdown
Author

There's still some quirks I'm hammering out with the hot reload implementation. I'm going to send out a series of changes that should fix them very soon - though I'll need a new DWDS and webdev release before it's all hooked up. I'll try to debug some jaspr apps with hot reload in my local setup though - it's possible I've missed adding something to this PR.

@schultek schultek changed the base branch from main to feat/hotreload May 9, 2026 17:53
@schultek schultek marked this pull request as ready for review May 9, 2026 17:53
@schultek schultek self-requested a review as a code owner May 9, 2026 17:53
@schultek schultek merged commit b8ce852 into schultek:feat/hotreload May 9, 2026
1 check failed
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.

2 participants