Turn off dart2js during pub build
问题 I am writing a custom transformer for pub build . I would like to turn off compilation of dart files to js during debugging of the transformer to save time. Is it possible? Currently, my simplified pubspec.yaml is name: my_proj dependencies: polymer: any transformers: - my_proj 回答1: There is no option for pub build only for pub serve --no-dart2js . You could temporary modify the file dart/sdk/lib/_internal/pub/lib/src/barback/build_environment.dart in your dart install directory and set