diff options
Diffstat (limited to 'build-tools/lib/less')
-rw-r--r-- | build-tools/lib/less/index.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/build-tools/lib/less/index.js b/build-tools/lib/less/index.js index 39c40ca2..3b4e928d 100644 --- a/build-tools/lib/less/index.js +++ b/build-tools/lib/less/index.js @@ -2,7 +2,11 @@ var path = require('path'), sys = require('sys'), fs = require('fs'); -require.paths.unshift(path.join(__dirname, '..')); +try { + // For old node.js versions + require.paths.unshift( path.join( __dirname, '..' ) ); +} catch ( ex ) { +} var less = { version: [1, 1, 3], |