Reputation: 372
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?
Upvotes: 0
Views: 519
Reputation: 1
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
Upvotes: -1