Creates empty exports
wmertens opened this issue · comments
Wout Mertens commented
Happens when rewriting a file that is already es module (but transpiled via webpack):
export default {foo: true}
becomes
const exported = {foo: true}
export default exported
export const {} = exported
export const {foo} = exported
Leonardo Apiwan commented
@wmertens Hey 👋 , can you provide me with the code generated by webpack? I want to check, but my theory is that your webpack is using Babel, and the output is incompatible with the named-export-generation
transformation.