Skip to content

Update to Babel 6 #77

New issue

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

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

Already on GitHub? # to your account

Closed
luandro opened this issue Nov 5, 2015 · 4 comments
Closed

Update to Babel 6 #77

luandro opened this issue Nov 5, 2015 · 4 comments

Comments

@luandro
Copy link
Owner

luandro commented Nov 5, 2015

React-Transform not yet compatible, issue being tracked here.

@luandro
Copy link
Owner Author

luandro commented Nov 26, 2015

Tracking this instead.

@luandro luandro changed the title Upadate do Babel 6 Update to Babel 6 Dec 24, 2015
luandro added a commit that referenced this issue Dec 24, 2015
@luandro
Copy link
Owner Author

luandro commented Dec 24, 2015

Error with client babel transpiling:

Module build failed: ReferenceError: [BABEL] .../hapi-universal-redux/src/client.js: Unknown option: base.stage

@dbashford
Copy link

That is because of this: https://github.com/luandro/hapi-universal-redux/blob/master/babel-server.js#L2

Now you set up your stage by using presets, canonically in a .babelrc file.

{
  "presets": ["stage-0"]
}

There are probably better ways to do it, but I just have this in the stuff I am doing:

require("babel-core/register")({});

I haven't bothered to see if the object is necessary. ;)

@luandro
Copy link
Owner Author

luandro commented Jan 20, 2016

Thanks for the heads up, I've been really busy lately. As soon as I have some time I'll do a big update to keep up with the original fork, which is already using Babel 6 and has figured a way to stop using Piping for server reload, which makes things really slow.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants