-
Notifications
You must be signed in to change notification settings - Fork 327
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
Build incompatible with modern frameworks #683
Comments
@samuel-girard, yes it will break the "legacy build" use case. It is unfortunate the JS world is becoming even more complicate than before. With more and more tricky/legacy cases instead of converging to the ES6 standard. The OL-Cesium library is small and building it is fast. So I am OK with adding a new "legacy" build to handle your use case. Would you be able to create a PR for it? |
For the context and current workaround in Angular cli: angular/angular-cli#10618. |
Thanks for the info. I will try to get back soon with a PR that solve the integration with Angular. |
Fixed by #685 |
Hello,
I have some issues with the current build of ol-cesium, when using it inside Angular application.
My problem is similar with what I found in other open issues:
src/index.library.js
(defined in the "module" key of package.json). The problem here happens in Internet Explorer 11, as it has no idea about ES2015 (console raises errors onclass
keyword): same problem than the issue opened here: ol-cesium 2.1.0 does not work in IE11 #649dist/olcesium.js
as it is gives the same error than How to integrate ES6 library without compiling the source? #642I have found a setup that makes me able to use the library perfectly fine in my application: samuel-girard@0702549
But I don't know if this config is fine for other people using ol-cesium.
I cannot use
olcs
package, because Angular does not let me customize Webpack setup, so the only solution is to provide a library that is already built.@gberaudo, what is your opinion on:
ol-cesium
npm package (for example, Angular libraries export multiple builds, with "esm5", "esm2015" keys in package.json to differentiate them.The text was updated successfully, but these errors were encountered: