When building the app using flutter build web --source-maps the generated source map file doesn't include information about the codes coming from packages. Is there a way to also include package information?
-
did you find a solution?Cyrus the Great– Cyrus the Great2025-02-11 10:46:24 +00:00Commented Feb 11 at 10:46
-
@CyrustheGreat Unfortunately no.Amir M– Amir M2025-02-13 00:11:42 +00:00Commented Feb 13 at 0:11
Add a comment
|
1 Answer
Ensure that the Dart Dev Compiler (DDC) is configured to generate full source maps. This can be done by setting appropriate options in your build.yaml file
targets:
$default:
builders:
build_web_compilers|entrypoint:
options:
compiler: dartdevc
dartdevc:
sourceMaps: true
Create or modify the build.yaml file in your project to include source maps for all packages. This file allows you to customize the build process.
flutter build web --release --source-maps