Skip to content

Resolve config specific imports for Dart 2 #32960

@leafpetersen

Description

@leafpetersen

Config specific imports are only partially supported by Dart tools (notably the build tools). There are some limited existing uses of config specific imports, mostly for testing purposes. There are possibly planned uses in the future for Dart SASS.

This issue is for discussion of possible short term resolutions for Dart 2 to avoid shipping something that we will later regret. Options on the table:

  • Fully unship the feature
    • pro: the feature as it exists is problematic
    • con: it fulfills a serious need
  • Ship the feature as it is
    • pro: the feature is useful
    • con: many build tools do not and may not ever support it
  • Move the feature back behind a flag a-la super-mixins with the intent of revisiting the feature in the next year (possibly with breaking changes)
    • pro: gives us license to make breaking changes
    • con: leaves the feature in an unfortunate heisen-state, users can't rely on it

@matanlurey @sigmundch Can you summarize on the issue why build tools can't support this?

@nex3 Can you comment on the Dart SASS requirements?

cc @zanderso @lrhn @anders-sandholm @vsmenon @munificent @a-siva

Metadata

Metadata

Assignees

Labels

area-languageDart language related items (some items might be better tracked at github.com/dart-lang/language).

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions