regexper-static/lib/canopy-loader.js

7 lines
125 B
JavaScript
Raw Normal View History

var canopy = require('canopy');
module.exports = function(source) {
this.cacheable();
return canopy.compile(source);
};