View on GitHub

Requirejs-shim-fail

Proof of concept showing that RequireJS is inconsistent when using shim.

Download this project as a .zip file Download this project as a tar.gz file

This is a proof of concept demonstrating the points in this blog post

I included the grunt file used to compile the scripts.

Scenario:

You have a large project. jQuery is used through the whole project, but not all jquery plugins are project-wide.

Navigator:

Just start with the uncompiled one in /source. I added links for easy nav.

Everything works except when it's compiled with shim-only.

I just want to re-iterate the point that I wanted to make: If it works in Dev, it doesn't mean it will work in Production. RequireJS is inconsistent.