lttb / is-react-prop

MIT License
4 stars 1 forks source link

add babel-plugin-transform-es2015-arrow-functions #1

Closed tuchk4 closed 7 years ago

tuchk4 commented 7 years ago

When added this lib into project (directly or via jss-styled) react-scripts build always failed with error:

static/js/1.9d0c9b4b.chunk.js from UglifyJs
SyntaxError: Unexpected token: operator (>) [../rockey/packages/rockey-react/~/is-react-prop/lib/index.js:38,0]

add babel-plugin-transform-es2015-arrow-functions to fix this error

lttb commented 7 years ago

Oh, @tuchk4 huge thanks for that fix!

lttb commented 7 years ago

@tuchk4 is it okay now?

tuchk4 commented 7 years ago

@lttb yes. Everything works fine at my app.

just update is-react-prop at styled-jss :)

thanks for fast reply!