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

renderSync() doesn't exit the node process if an importer() function is provided. #794

@aputinski

Description

@aputinski

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);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions