Closed
Description
Implement configuration specific imports [0] behind a flag.
Validate it, and then remove the flag, once the DEP committee has accepted it.
Agreed upon flag (so far): --conditional-directives
The implementation is already underway (checked when committed):
- VM: https://codereview.chromium.org/1380383002/
- dart2js: https://codereview.chromium.org/1388523002/
Still missing: environment variables for the existing libraries:
- VM: issue Set predefined environment variables for existing libraries in the VM #24587
- dart2js: issue Set predefined environment variables for existing libraries in dart2js #24586
Validate implementation by updating pkg/http
The analysis can be implemented in different phases.
- analyzer: Implement configuration specific imports in the analyzer #24579
- phase 0
- phase 1 - no longer planned.
- dart2js (optional): Implement analysis for configuration specific imports in dart2js. #24580 - no longer planned.
Once the DEP committee has accepted:
- remove flag
- Implement in DDC implement configuration specific imports dart-archive/dev_compiler#595
- Validate behavior for summaries and bazel Validate summary generation and bazel model for Config Specific Imports (CSI) #28247
[0] https://github.com/munificent/dep-interface-libraries/blob/master/Proposal.md