jspm/babel-plugin-transform-cjs-dew

Named exports handling

guybedford opened this issue · 1 comments

If named exports are to be supported we can handle this by building up the list of exports, and then only altering the output to export these bindings if the __esModule export is found by its various possible structures.

Bindings for this don't need to be live updated which is useful, so it's a very easy output of the form export const exportName = exports.exportName; ....

Currently this is off the table, can reopen if it comes up again for Node.