Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
wrapper: (templates, _opts) => {
return `
const { runtime } = require('${ctx.data.runtimePath}');
module.exports = {
src: {
type: 'code',
obj: (function(){
${templates[0].template};
})()
},
path: '${opts.name}',
noCache: true,
};
`;
},
env: new Environment([], getEnvironmentOptions(opts))
});
return {source};
}