d2-ui
Version:
20 lines (14 loc) • 411 B
JavaScript
var isparta = require('isparta');
module.exports = function(source) {
var config = this.options.isparta || {
embedSource: true,
noAutoWrap: true,
babel: this.options.babel
};
var instrumenter = new isparta.Instrumenter(config);
if (this.cacheable) {
this.cacheable();
}
return instrumenter.instrumentSync(source, this.resourcePath);
};
;