1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-27 04:46:10 +01:00
metamask-extension/development/build/sass-compiler.js

13 lines
397 B
JavaScript
Raw Normal View History

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');
},
};