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

Description
In both 2.0.1 and 3.0.0-alpha.0, calling renderSync() with a custom importer() function works as expected, but causes the node process to never exit. This happens on node 0.10.36 as well as 0.12.0. No errors are thrown and the correct result is returned.
This works fine:
var sass = require('node-sass');
var result = sass.renderSync({
data: '.foo{background:red;}'
});
console.log(result.css);
This gives the same result, but never exits the node process (even though the importer isn't being used):
var sass = require('node-sass');
var result = sass.renderSync({
data: '.foo{background:red;}',
importer: function(url, prev) {
return {
contents: '.bar{background:blue;}'
};
}
});
console.log(result.css);