v6.11.5 (2016-10-12)
👓 Spec Compliancy
Fix: Check for duplicate named exports in exported destructuring assignments (#144) (Kai Cataldo)
// `foo` has already been exported. Exported identifiers must be unique. (2:20)
export function foo() {};
export const { a: [{foo}] } = bar;
Fix: Check for duplicate named exports in exported rest elements/properties (#164) (Kai Cataldo)
// `foo` has already been exported. Exported identifiers must be unique. (2:22)
export const foo = 1;
export const [bar, ...foo] = baz;
🐛 Bug Fix
Fix: Allow identifier async
for default param in arrow expression (#165) (Kai Cataldo)
// this is ok now
const test = ({async = true}) => {};
💅 Polish
Babylon will now print out the token it's expecting if there's a SyntaxError
(#150) (Daniel Tschinder)
# So in the case of a missing ending curly (`}`)
Module build failed: SyntaxError: Unexpected token, expected } (30:0)
28 | }
29 |
> 30 |
| ^