Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 540902d

Browse files
committed
Polyfill
1 parent 22c560c commit 540902d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

lib/index.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,3 +424,17 @@ module.exports.types = binding.types;
424424
module.exports.TRUE = binding.types.Boolean.TRUE;
425425
module.exports.FALSE = binding.types.Boolean.FALSE;
426426
module.exports.NULL = binding.types.Null.NULL;
427+
428+
/**
429+
* Polyfill the old API
430+
*
431+
* TODO: remove for 4.0
432+
*/
433+
434+
process.sass = process.sass || {
435+
versionInfo: module.exports.info,
436+
binaryName: sass.getBinaryName(),
437+
binaryUrl: sass.getBinaryUrl(),
438+
binaryPath: sass.getBinaryPath(),
439+
getBinaryPath: sass.getBinaryPath,
440+
};

0 commit comments

Comments
 (0)