« Bugzilla Issues Index
#3292 — Why can't the default export be exported with export *?
- bug_id:
3292
- creation_ts:
2014-10-19 10:46:00 -0700
- short_desc:
Why can't the default export be exported with export *?
- delta_ts:
2015-10-15 17:17:27 -0700
- product:
Draft for 7th Edition
- component:
New feature suggestons
- version:
unspecified
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
INVALID
- priority:
Normal
- bug_severity:
normal
- everconfirmed:
true
- reporter:
Guy Bedford
- assigned_to:
Allen Wirfs-Brock
- cc:
["brterlso", "dherman", "jorendorff", "samth"]
- commentid:
10524
- comment_count:
0
- who:
Guy Bedford
- bug_when:
2014-10-19 10:46:36 -0700
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.
- commentid:
10690
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2014-11-26 17:37:34 -0800
We can probably do that, assuming we apply the same conflict rules to 'default' that applied to other names.
- commentid:
13751
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2015-03-16 14:22:32 -0700
deferring to ES 7
need input from Module champions
- commentid:
14813
- comment_count:
3
- who:
Brian Terlson
- bug_when:
2015-10-15 17:17:27 -0700
Seems unlikely, but there are additional export forms in the proposal pipeline that may help this scenario.