requirejs / almond

A minimal AMD API implementation for use after optimized builds
Other
2.42k stars 169 forks source link

Support for shim in require.config #78

Closed beradrian closed 10 years ago

beradrian commented 10 years ago

Without such support you need to include define statement for all the non-require modules included in the optimized file.

jrburke commented 10 years ago

The r.js optimizer should inline the correct things such that shim config is not needed. If you are finding an error with this inlining, then an example may help point out the issue. I do know of jrburke/requirejs#987, so you may look at that if it is the situation for you too.

Going to close as shim config should work if build generated by r.js, but feel free to continue discussion here, and we can reopen if we find some code that has to change.