Skip to content

Commit 5d3a68d

Browse files
Add blog post about modular vs monolithic AngularJS UMD bundles
1 parent 70ce3df commit 5d3a68d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

_posts/2017-05-29-uirouter-for-angularjs-umd-bundles.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ This core library has been used to create new routers for
1919
[Polymer](https://github.com/ergo/polymer-ui-router), and even
2020
[Backbone/Marionette](https://github.com/bobmanary/ui-router-marionette).
2121

22-
2322
### Plugins and UMD bundles
2423

2524
When UI-Router for AngularJS 1.0 was released, we split the bundles into `ui-router-core.js` and `ui-router-angularjs.js`.
@@ -30,13 +29,14 @@ Users who formerly included only `angular-ui-router.js` should now include both
3029
Add [`ui-router-core.js`](https://unpkg.com/@uirouter/core/_bundles/) from the [`@uirouter/core` package](https://github.com/ui-router/core)
3130
as well as [`ui-router-angularjs.js`](https://unpkg.com/@uirouter/[email protected]/release/) from the [`@uirouter/angularjs` package](https://github.com/angular-ui/ui-router).
3231

33-
### Backwards compatibility mono-bundle
32+
### Backward compatible mono-bundle
3433

35-
For backwards compatibility reasons, we will continue to publish a monolithic bundle as [`angular-ui-router.js`](https://unpkg.com/@uirouter/angularjs/release/).
34+
For backwards compatibility, we will continue to publish a monolithic bundle as [`angular-ui-router.js`](https://unpkg.com/@uirouter/angularjs/release/).
3635
This bundle includes *both the core and angularjs code*.
37-
However, this bundle is not compatible with many UI-Router plugins which depend on `@uirouter/core`.
36+
Existing users who rely on the `angular-ui-router.js` bundle do not have to change anything.
37+
However, this bundle is not compatible with UI-Router plugins which depend on `@uirouter/core`.
3838

3939
### Webpack users
4040

41-
Users of webpack (or any bundlers which use node module resolution) should not need to make any changes because of UMD bundles.
41+
Users of webpack (or any bundlers which use node module resolution) should not need to make any changes due to these bundle changes.
4242
Simply `require` or `import` from the [scoped package](/blog/uirouter-scoped-packages/) `@uirouter/angularjs` instead of from `angular-ui-router`.

0 commit comments

Comments
 (0)