Enable hotreload#807
Conversation
|
To view this pull requests documentation preview, visit the following URL: Documentation is deployed and generated using docs.page. |
Package Version ReportThe following packages have been updated: |
parlough
left a comment
There was a problem hiding this comment.
Exciting!! I haven't tried this out yet, but some comments, suggestions, and questions:
| webSdkDir, | ||
| 'kernel', | ||
| flutterVersion.compareTo('3.32.0') >= 0 ? 'amd-canvaskit' : 'amd-canvaskit-sound', | ||
| flutterVersion.compareTo('3.32.0') >= 0 ? ddcSdkPrefix : '$ddcSdkPrefix-sound', |
There was a problem hiding this comment.
Slightly unrelated, but I guess we can remove this (and related) handling now. The package's SDK constraint requires Dart 3.8 or later, so Flutter 3.32 or later is required anyway.
There was a problem hiding this comment.
I'll keep it just a bit longer, but yes then I will remove it.
| // Add DDC Library Bundle defines. | ||
| if (usesDdcLibraryBundles) ...[ | ||
| '--define=build_web_compilers:ddc=ddc-library-bundle=true', | ||
| '--define=build_web_compilers:sdk_js=ddc-library-bundle=true', | ||
| '--define=build_web_compilers:entrypoint=ddc-library-bundle=true', | ||
| '--define=build_web_compilers:entrypoint_marker=ddc-library-bundle=true', | ||
| ], | ||
|
|
||
| // Add Web Hot Reload defines. | ||
| if (reloadConfig == ReloadConfiguration.hotReload) ...[ | ||
| '--define=build_web_compilers:sdk_js=web-hot-reload=true', | ||
| '--define=build_web_compilers:entrypoint=web-hot-reload=true', | ||
| '--define=build_web_compilers:entrypoint_marker=web-hot-reload=true', | ||
| '--define=build_web_compilers:ddc=web-hot-reload=true', | ||
| '--define=build_web_compilers:ddc_modules=web-hot-reload=true', | ||
| ], |
There was a problem hiding this comment.
Should all of these only be added if the compiler is dartdevc?
| logger.write('Starting web compilers...', tag: Tag.cli, progress: ProgressState.running); | ||
| logger.write('Starting web compiler...', tag: Tag.cli, progress: ProgressState.running); | ||
|
|
||
| final compiler = useWasm |
There was a problem hiding this comment.
Consider changing this to a private enum, then any conditional handling can validate you handled each case and spelling mistakes are avoided.
|
@Markzipan When testing this with and Do you know anything about this? |
The following packages have been updated: jaspr_riverpod : 0.4.5 -> 0.4.6
Description
Enables client-side hotreload in Jaspr
CC @Markzipan
Type of Change
Ready Checklist
the semantic_changelog format.
///).