Require.js takes an optional config. Is it possible to map a path to an existing variable?
require.config({
"paths": {
"jquery": "../my/path/to/jquery"
}
});
However, there is a case where I don't actually need jquery but a library thinks it does. So I need to include jquery but it doesn't actually use it. Actually storing the jquery file is bloat. So I want to map require("jquery") to function() {}. Is there any way to do this?