Skip to content

Commit

Permalink
Polyfill process.sass
Browse files Browse the repository at this point in the history
  • Loading branch information
xzyfer committed Mar 25, 2016
1 parent 22c560c commit 90b6939
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/index.js
Expand Up @@ -424,3 +424,17 @@ module.exports.types = binding.types;
module.exports.TRUE = binding.types.Boolean.TRUE;
module.exports.FALSE = binding.types.Boolean.FALSE;
module.exports.NULL = binding.types.Null.NULL;

/**
* Polyfill the old API
*
* TODO: remove for 4.0
*/

process.sass = process.sass || {
versionInfo: module.exports.info,
binaryName: sass.getBinaryName(),
binaryUrl: sass.getBinaryUrl(),
binaryPath: sass.getBinaryPath(),
getBinaryPath: sass.getBinaryPath,
};

0 comments on commit 90b6939

Please sign in to comment.