-
-
Notifications
You must be signed in to change notification settings - Fork 78
Possibility to create a single bundle for SystemJS loader in AOT mode #110
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
Comments
Hi, Which versions?
Are you talking about the new Angular package specifications v5.0 or 4.0? |
Hi, let me add some additional info ...
I am not sure if there is a difference between Angular package specifications 5.0 and 4.0 from the point of view of the described problem. If we are talking about Angular 5.1.0 it means also Package Format 5.0. |
Oh wait, are you talking about running SystemJS with AOT? |
Yes, SystemJS with AOT app. I am not sure if there is a possibility to create a plunker demo of it. Would be enough for you a simple GitHub repo with it ... so you will have to clone it and run? |
Yes, please, give a link to a minimal Github repo to test this. |
I prepared the demo already. It contains all versions: JIT, AOT and BUNDLED AOT. It is on GithHub here: https://github.com/mlc-mlapis/demo-angular-modal-gallery README describes how to work with it. I hope that it'll be working for you and you can shortly find out how to enhance |
Ok thank u 👍 . |
I confirm this behaviour, but please give me more time because I have many things to do at the same time and I don't have enough time right now, because I want to try to understand how you achieved this result. However it seems related to the packaging system and not to the library itself. However I'll investigate further as soon as possibile. |
@Ks89 ... sure, I am patient enough, ... 😄 . What is the strange thing for me is that why Which solution are you using for packaging of your lib? |
I'm using ng-packagr (the current stable version of angular-modal-gallery is built with version 1.5.0-rc.1). If you want to help me, feel free to contribute to the project. |
@Ks89 ... |
@Ks89 ... after deeper understanding how |
Ok. Thank u for the explanation. Feel free to close the issue. However, why are you using SystemJs instead of angular-cli or a pure Webpack config? |
@Ks89 ... using SystemJS is a combination of historic evolution of our projects and the necessity of a shared bundle (which would contain tree-shake-able resources from Angular libs, RxJS, ...) for several standalone apps. Now CLI is not able to do that ... each application is a monolithic app (all necessary resources are included -> duplicates across those apps). With SystemJS we can use a browser cache to share the resources (Angular libs, RxJS, ...) among those apps ... and these resources are not part of those apps. This is a temporary solution with |
Uh oh!
There was an error while loading. Please reload this page.
I'm submitting a...
Current behavior
Even when possible to run in AOT mode ... explanation here #109, it means that 2 files have to be loaded ...
angular-modal-gallery.umd.min.js
andangular-modal-gallery.ngfactory.js
. It means that it is a problem to create a single bundle with all necessary files.Expected behavior
A single bundle with
angular-modal-gallery.ngfactory.js
andangular-modal-gallery.js
or an easy way to do it. Right now the module format ofangular-modal-gallery.js
is different ...es2015
then the format forangular-modal-gallery.ngfactory.js
.The same situation when using PrimeNG components allows to create a single bundle ... for example for
slider
component ... bundlingslider.ngfactory.js
andslider.js
directly without any changes because both use the same module format.What is the motivation / use case for changing the behavior?
Easy using of
angular-modal-gallery
component in AOT mode.Environment
The text was updated successfully, but these errors were encountered: