Ambiguity with default exports and live bindings?

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


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

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

compared to

```js
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).


*/#!/*JoePea
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160706/ae19e437/attachment.html>


More information about the es-discuss mailing list