When converting ESM, and there's an expression like --counter, where counter is exported, we would wrongly convert it to --exports.counter = counter, which is invalid syntax. In this case, it's sufficient to do --exports.counter, and with this change we do that.
When converting ESM, and there's an expression like
--counter
, wherecounter
is exported, we would wrongly convert it to--exports.counter = counter
, which is invalid syntax. In this case, it's sufficient to do--exports.counter
, and with this change we do that.