Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var compileRiot = function(code, opts){
return riot.compile(code,opts);
};
require.extensions['.html'] = function(module, filename) {
var src = riot.compile(fs.readFileSync(filename, 'utf8'))
module._compile('module.exports = ' + src, filename)
};