dart - Turn off dart2js during pub build -
i writing custom transformer pub build. turn off compilation of dart files js during debugging of transformer save time. possible?
currently, simplified pubspec.yaml is
name: my_proj dependencies: polymer: transformers: - my_proj
there no option pub build pub serve --no-dart2js.
you temporary modify file
dart/sdk/lib/_internal/pub/lib/src/barback/build_environment.dart in dart install directory , set usedart2js 'false'.
i haven't tried myself think should work.
or exclude web directory dart2js transformer in pubspec.yaml
transformers: - $dart2js: $exclude: web
Comments
Post a Comment