You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
397 B
13 lines
397 B
4 years ago
|
const sass = require('sass');
|
||
|
|
||
|
module.exports = {
|
||
|
render: (opts, callback) => {
|
||
|
// sass wants its arguments to come from the same Realm as itself
|
||
|
// bridgeJson and bridgeFn are added via patch-package to make this possible
|
||
|
sass.render(sass.bridgeJson(opts), sass.bridgeFn(callback));
|
||
|
},
|
||
|
renderSync: () => {
|
||
|
throw new Error('sass-wrapper - renderSync not supported');
|
||
|
},
|
||
|
};
|