buble icon indicating copy to clipboard operation
buble copied to clipboard

Transpiling issue in string-keyed properties with whitespaces before colons

Open Saberre opened this issue 6 years ago • 0 comments

There's a transpilation problem in buble version 0.19.7 and under, which it incorrectly transpiles an object that has string-keyed properties with whitespaces before colons after a computed property.

<!-- Without whitespaces, no errors -->
<div :class="{['computed']: 1, 'some-class': 2}"></div>

<!-- With a whitespace, a syntax error occurs -->
<div :class="{['computed']: 1, 'some-class' : 2}"></div>

Could you update the fork to 0.19.8?

FYI, this is the issue from buble: https://github.com/bublejs/buble/pull/200

Thank you.

Saberre avatar Jul 09 '19 08:07 Saberre