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
Support es6/es2015 TypeScript target #219
Comments
I won't expect breeze to work with an es6 target. Other third-party libraries may have the same issue. We have rewritten breeze in TypeScript, but haven't released it yet. Any particular reason you are targeting es6? Targeting es6 will just limit you to which browser the application will run in. TypeScript pretty much gives you all the es6 features, so you can code with modern features, but there is no real good reason to target es6 for the transpiled final output. The TypeScript compiler will transpile all the es6 features to es5 and the final app will run in any browser. |
@marcelgood , it's pretty exciting! Would Breeze re-written in TS be open-source as well? Is it available somewhere for the public maybe in beta\alpha phase? Regarding your other comments.
There are at least 3 reasons:
As to other third-party libraries, they'll inevitably move to |
Yes, it is open source. The source is on Github and you can install it into your app with the following command.
|
There's also a branch for our TempHire reference app migrated to breeze-client@next if you wanna see what things had to change. https://github.com/Breeze/temphire.angular/tree/breeze-client%40next |
@marcelgood I've checked out your proposal to use I've reported it here. Would appreciate if you provided some feedback. |
Just updated breeze-client to 2.0.0-alpha.9, which supports ES6 and Angular 8. Please Please note that breeze-client now uses the Angular Package Format, so the paths to the adapters have changed. Please see the README |
The breeze-client package is now released at version 2.0.1 |
I'm using
"breeze-client
+breeze-bridge2-angular
in an Angular 6 app. When TypeScript compiler target ises5
everything works fine. When I set it toes6
/es2015
as described in Angular docs, I'm getting an exception at run-time:I suppose this is because Breeze doesn't support
es6
/es2015
target yet.The text was updated successfully, but these errors were encountered: