Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What Babel stage is being used behind the scene? #93

Closed
ghost opened this issue Apr 8, 2016 · 4 comments
Closed

What Babel stage is being used behind the scene? #93

ghost opened this issue Apr 8, 2016 · 4 comments

Comments

@ghost
Copy link

ghost commented Apr 8, 2016

Hi,

First, thanks for this great tool...
I have issues binding propTypes to my class. I'm using es7 syntax and do
static propTypes: {}

My question is what stage of babelify is used behind the engine and how can I modify it?

Thanks.

@calebmer
Copy link

calebmer commented Apr 8, 2016

Did you mean static propTypes = {} (with =, not :)?

Disclaimer: not a core team member.

@ghost
Copy link
Author

ghost commented Apr 8, 2016

With = I'm getting build error... had tried that at first
`Unexpected token (4:19)

export default class extends React.Component {
static propTypes = {
components: React.PropTypes.array.isRequired,
events: React.PropTypes.array.isRequired,
} `

@geowarin
Copy link

geowarin commented Apr 8, 2016

You can change the babel stage in nwb.config.js

@ghost
Copy link
Author

ghost commented Apr 11, 2016

This can be closed... Babel stage is configurable from nwb.config.js file.
💭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants