marksmccann / node-sass-extra

A drop-in replacement for node-sass' Node API that adds support for globs, promises and more.
MIT License
2 stars 1 forks source link

Missing Exports from Node API #40

Closed marksmccann closed 5 years ago

marksmccann commented 5 years ago

In addition to render and renderSync, node-sass also exports a few variables. We will need to replicate this in order to truly be a drop-in replacement. We could probably, simply do a pass through?

https://github.com/sass/node-sass/blob/master/lib/index.js#L443

/**
 * API Info
 *
 * @api public
 */

module.exports.info = sass.getVersionInfo(binding);

/**
 * Expose sass types
 */

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;