define variables in pub build for dart2js #16613
Labels
closed-duplicate
Closed in favor of an existing report
P1
A high priority bug; for example, a single project is unusable or has many test failures
type-enhancement
A request for a change that isn't a bug
This should be a simple change, but it will be extremely useful.
What I'd like is to let codegenerators and runtime libraries to adapt their behavior based on the intended use of the code (distinguishing between dev time and deploy time and what kind of compilation strategy was used (debug/release))
We should be able to do so if we can pass 2 flags to dart2js automatically when calling pub build. I basically would like:
-Ddeployment=true
-Dmode=debug or release
Could we do that :)? pretty please?
The text was updated successfully, but these errors were encountered: