diff --git a/lib/index.js b/lib/index.js index 73b7cc9c1..cc741bb3b 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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, +};