Microbundle: Possible bug with transforming static class properties

Created on 27 Apr 2018  路  5Comments  路  Source: developit/microbundle

This works in parcel via babel, but not here:

SyntaxError: Unexpected token (10:19) C:\Users\Dizzle\Documents\GitHub\react-virtual-list\src\VirtualList.js (nodent)
  static propTypes = {
-------------------^

Is this a buble or nodent issue, or something else I might be missing?

Using [email protected]

upstream

Most helpful comment

Yup! (also +1 for art reference haha)

All 5 comments

That's probably happening because buble doesn't support class properties.

That's probably happening because buble doesn't support class properties.

Welp... you got me buble

Guessing this will be addressed in the future by the switch to babel ?

Yup! (also +1 for art reference haha)

@zzswang transformation of class properties should be supported in the latest release

@marvinhagemeister

Thank you, yes it is fixed in the latest version.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kuldeepkeshwar picture kuldeepkeshwar  路  4Comments

retyui picture retyui  路  4Comments

SleeplessByte picture SleeplessByte  路  3Comments

adriengibrat picture adriengibrat  路  4Comments

chrstntdd picture chrstntdd  路  4Comments