-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Update to es6 module syntax #855
Comments
This will enable compatibilty with jspm as soon as handlebars-lang#855 has been addressed.
@mmun tag, you're it. |
@kpdecker I get your concern of spec whackamole. That said I think it's important for a popular project like handlebars to be compatible with https://github.com/esnext/es6-module-transpiler. There's some code that's violating some, I think at this point, well established parts of the spec. I haven't audited the whole code base yet, but for example redefining the import here: https://github.com/wycats/handlebars.js/blob/master/lib/handlebars.js#L2 That said, it's not blocking HTMLBars right now and there are probably more pressing issues. |
Traceur also supports outputting to AMD. They're also very good at keeping pace with the spec as it evolves. I'm using it since about four months now and as far as I can tell, Google does an excellent job maintaining it. If you chose to, you can even disable other transforms it provides. |
@MajorBreakfast it has also fixed alot of its crazy output |
It looks like es6-module-transpiler has implementing massively breaking changes that requires us to redo our build stack. When I tested their latest CLI implementation against the handlebars lib, it output code that was missing dependencies and also utilized getters meaning IE versions prior to 9 would have to be desupported, which is not going to happen just yet. If someone can help update the build chain to support this feature and not drop our various build targets (CJS, AMD, UMD), I'm fine with changing to the new syntax, but right now it seems like everything is far to unstable to make it worthwhile. |
This will enable compatibilty with jspm as soon as handlebars-lang#855 has been addressed.
Released in 3.0.2 |
module myModule from 'my-module'
becameimport * as myModule from 'my-module'
http://jsmodules.io/
I think many of you are already aware of that. I'm just posting it as an issue because it needs to be addressed.
The text was updated successfully, but these errors were encountered: