archives

« Bugzilla Issues Index

#3292 — Why can't the default export be exported with export *?


There is a use case for export * in creating alias modules. For example:

app.js
export * from 'app/main.js';

app/main.js
export default app;

The above example would no longer work with the restriction in 15.2.1.18 7.c. I'm not sure I understand what the technical limitation is here.


We can probably do that, assuming we apply the same conflict rules to 'default' that applied to other names.


deferring to ES 7

need input from Module champions


Seems unlikely, but there are additional export forms in the proposal pipeline that may help this scenario.