R.js doesn't shim ember

Recently i switched to latest ember, then i realized r.js doesn’t shim ember. This results in ember being loaded seperately, even though it is included in the optimized/minified main.js.

I guess it is due to ember redefining define and using in the form of

define("ember", function{});

this results r.js to ignore ember shim config somehow.

I asked this question on stackoverflow.