benjamn / reify

Enable ECMAScript 2015 modules in Node today. No caveats. Full stop.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Don't save setter for const exports.

jdalton opened this issue · comments

This would address a line item on #90. It would also be a good time to think about the parser optimization to do a top-level only parse if there are only const exports and nested imports is disabled.

Specifically, we can discard the setter after the first time it is called, if module.loaded is true, meaning we should have finished initializing all top-level const values.