-
-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Labels
bugSomething isn't workingSomething isn't working
Description
const { init, parse } = require('es-module-lexer')
init.then(() => {
const [imports, ex] = parse(`
const o = { name5: 1, name6: 1 }
export const { name5, name6: bar } = o`
)
console.log(imports, ex)
})Outputs
[] [
{ s: 49, e: 54, ls: 49, le: 54, n: 'name5', ln: 'name5' },
{ s: 56, e: 61, ls: 56, le: 61, n: 'name6', ln: 'name6' }
]But there should be a bar export instead of name6.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working