mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-30 16:18:07 +01:00
13 lines
397 B
JavaScript
13 lines
397 B
JavaScript
|
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');
|
||
|
},
|
||
|
};
|