Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allow to use custom r.js with relative path

  • Loading branch information...
commit b5507be7dfdbc6c74465f7d7aca63c5e5f569c8c 1 parent 681c61b
@podgorniy podgorniy authored
View
6 examples/almond-text-plugin-project/node_modules/grunt-requirejs/lib/helper/rjsversion.js
@@ -24,13 +24,13 @@ exports.init = function(grunt) {
if (config.rjs) {
var rjsPathname = config.rjs + '/bin/r.js';
- // check if the custom version is available, then load & return the
+ // if the custom version is available, then load & return the
// custom version, else default to the standard bundled requirejs
- if (fs.existsSync(rjsPathname)) {
+ try {
requirejs = require(rjsPathname);
isDefaultVersion = false;
return requirejs;
- }
+ } catch (e) {}
}
Please sign in to comment.
Something went wrong with that request. Please try again.