ts2esm
ts2esm copied to clipboard
`module.exports = { ... }` are stripped instead of being transformed
Example:
const c0 = 0;
const c1 = 1;
module.exports = {
c0,
c1,
};
Incorrect result:
const c0 = 0;
const c1 = 1;
Expected:
const c0 = 0;
const c1 = 1;
export {
c0,
c1,
};
Thanks for the hint! It's getting fixed with: https://github.com/bennycode/ts2esm/pull/166