In big project, you often use framework extensions or plugins: things that extend your framework’s namespace but do not export any modules themselves. For example I use Backbone and React with Backbone.localStorage, react.backbone and my own React mixins.
I’m trying to find the best way to include such modules with RequireJS. Most of them can be used for polyfills too.
Bundle is a special module, which you create with the RequieJS optimizer. Any time you require one of the modules inside the bundle RequireJS will load the bundle instead.
(I haven’t try this method myself because I think it’s overcomplicated but here’s a good article on how to make and use bundles.)
Create a separate module that requires an original framework with all needed extensions and returns framework back. Do it for all your frameworks that you want to extend.