I have an api that gives me an object like this:
data = {
"00": { ... },
"01": { ... },
"02": { ... }
`...`
}
When accessing data["00"] babili convets it to data[0] breaking the code.
Hey @GabbeV! We really appreciate you taking the time to report an issue. The collaborators
on this project attempt to help as many people as possible, but we're a limited number of volunteers,
so it's possible this won't be addressed swiftly.
If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack
community that typically always has someone willing to help. You can sign-up here
for an invite.
You can use
properties: {
memberExpression: false,
propertyLiterals: false,
}
as your babili options
or you can pass
properties: false
in your options.
Thank you @boopathi, that works great for a temporary fix. I would still consider it a bug though as it should be avoidable by checking if the numeric strings are 0 padded.