Closed ludohenin closed 8 years ago
@ludohenin unfortunately I am not really familiar with bundling with system.js but it works with system.js anyway https://github.com/pkozlowski-opensource/ng2-play/pull/34
I'll try to propose you something. Btw I also got it working here https://github.com/ludohenin/angular2-seed-ng2-bootstrap. The things is that it's not as straight forward as adding a script tag in the html document.
In this question I agree with redux guys:
If you don’t yet use npm or a modern module bundler, and would rather prefer a single-file UMD build that makes Redux available as a global object, you can grab a pre-built version from cdnjs. We don’t recommend this approach for any serious application, as most of the libraries complementary to Redux are only available on npm.
https://www.npmjs.com/package/redux
but I was planning to add bundled version later, not prio, If you have an idea how I can do I will gladly apply it to all modules https://github.com/valor-software/ng2-plans :)
Yeah agree with you. interesting (long) discussion https://github.com/angular/angular/issues/4278 about this topic.
I suppose soon we will see some common approach to building\bundling modules so we can use it
Making a quick custom build (with system at least) isn't that hard. I think it's fine like this. If I had to distribute bundles, I would do cjs only, one with full deps (ng2 + deps), and one with just the lib. Can be convenient for quick trial, prototype. The example integration with angular2-seed is basically the lib alone.
This would be very nice in at least some form of docs. The official ng2 starting tutorial uses systemjs.
published new version with system.js bundles https://www.npmjs.com/package/ng2-bootstrap#quick-start
Would be very nice to have a
dist
folder with a bundled file build with systemjs (register).