dart-lang / build

A build system for Dart written in Dart
https://pub.dev/packages/build
BSD 3-Clause "New" or "Revised" License
791 stars 210 forks source link

Make is a lot easier to enable including source_maps in dart2js output #1779

Open kevmoo opened 6 years ago

kevmoo commented 6 years ago

See https://stackoverflow.com/questions/51944375/webdev-serve-missing-output-for-js-map-files

This is the best example we have – crazy - https://github.com/dart-lang/angular_components_example/blob/master/example/angular_components_example/build.yaml

natebosch commented 6 years ago

To be precise, the code it takes to do this is:

global_options:
  build_web_compilers|dart_source_cleanup:
    release_options:
      enabled: false
  build_web_compilers|dart2js_archive_extractor:
    release_options:
      filter_outputs: false

The main difficulty here is:

We could solve both of those fairly easy after we implement #1544

travissanderson-wf commented 1 year ago

Unless I am missing something, this is still quite difficult to do

natebosch commented 1 year ago

Unless I am missing something, this is still quite difficult to do

Does the config above work?

travissanderson-wf commented 1 year ago

We use something similar that works in our primary product, but I tried using that in the benchmarks app in https://pub.dev/packages/r_tree and was unsuccessful