nex3 / dep-import-when

Yet another cross-platform import DEP
1 stars 2 forks source link

Are collisions allowed? #4

Closed munificent closed 9 years ago

munificent commented 9 years ago

Can I do something like:

import 'html5lib_element.dart' when 'dart:io';
import 'dart:html' when 'dart:html';

class MyElement extends Element {}

And have it get the right base class at runtime based on which library was imported?

CC @jmesserly

jmesserly commented 9 years ago

I see this is closed, but it doesn't seem to address the package:html Element use case at all? Unless I'm missing something?