Closed luczsoma closed 7 years ago
Great question, I did not find any clarification in the specification http://www.ecma-international.org/ecma-262/6.0/#sec-exports. In my opinion Shift is only giving you the syntax tree and it is a semantic information that this is the same as an export default
statement. This may be a default (hah!) transformation of our framework.
When exporting from exporter.js with the syntax
export { name1 as default }
then name1 should be the default export of the module. Instead, it gets exported as an ordinary variable with the name "default". This is most possibly a Shift Parser bug.