benjamn / reify

Enable ECMAScript 2015 modules in Node today. No caveats. Full stop.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Namespace export multiple defaults.

jdalton opened this issue · comments

How is something like this handled ideally.

export * from "./abc";

export default function(){} // but * contains a "default"
// or
export let a = 3; // but * contains "a" too.

It certainly seems like the more explicit (non-*) export should override the * one.

The easy route is to say first one in, wins.