Ambiguity with default exports and live bindings?

/#!/JoePea joe at
Wed Jul 6 22:02:40 UTC 2016

Is it true one of the following does not create a live binding?

let A = 123
export default A // not a live binding?

compared to

let A = 123
export {A as default} // live binding?

If so, this seems like large source for unexpected behavior when people
create modules. I can imagine people easily overlooking the difference and
expecting live bindings in both cases (this already happened to me).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list