-
Notifications
You must be signed in to change notification settings - Fork 509
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
ES6 Support Via Babel #1918
Comments
Hey @kkirsche that's always welcome :). ES6 is the future and we should embrace it. Is this transpiler working on-the-fly? Thanks, Darío |
@dariocravero it is not an on the fly but I figure it or at least babel-core would provide the ability to extend the core functions to do it on the fly. Worst case though is I can work through the es6 module transpiler rails uses and use that as a basis to strip and refactor till we have something a bit thinner that'll work well with Padrino and it's goals |
So would that work as a middleware that takes, say, |
Middleware was my plan. I'd had thought about running it on
My guess is we will need to use something like Browserify for module though I haven't looked at any of the ES6 shims enough to be able to say if there is a shim which would be lighterweight. What are your thoughts? |
Wouldn't that introduce some kind of mini-asset-pipeline, which Padrino avoids doing currently? Note that I know quite some users opting for Padrino because it doesn't care about how you handle JS. |
@skade, yes, that would be an assets pipeline chore :). |
Probably won't made it to the core library. I think it can be a nice padrino-recipe. |
Hey Padrino,
I wanted to check with you guys and see if there was any interest in automatic javascript transpiler from ES6 -> ES5 via the babel-transpiler gem. I wanted to check though if this was something of interest to you before beginning to work on this type of a feature though
The text was updated successfully, but these errors were encountered: