Skip to content

Commit

Permalink
Add note about wrapShim for AMD
Browse files Browse the repository at this point in the history
  • Loading branch information
ichernev committed Apr 4, 2014
1 parent fd34e3d commit 914b39c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/core_docs/use-it/require-js.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,8 @@ require.config({
If you don't specify `noGlobal` then the globally exported moment will print
a deprecation warning. From next major release you'll have to export it
yourself if you want that behavior.

For version `2.5.x`, in case you use other plugins that rely on Moment but are
not AMD-compatible you may need to add [`wrapShim:
true`](https://github.com/jrburke/r.js/blob/b8a6982d2923ae8389355edaa50d2b7f8065a01a/build/example.build.js#L68-L78)
to your r.js config.

0 comments on commit 914b39c

Please sign in to comment.