mirror of
https://github.com/samclarke/SCEditor.git
synced 2026-01-09 14:16:57 +00:00
* Update dev dependencies This removes sauce support and githhoks support. Switches from postcss-clean to to cssnano * Fix coverage * Update autoprefixer to latest version
13 lines
384 B
JavaScript
13 lines
384 B
JavaScript
/* eslint-env node */
|
|
const libInstrument = require('istanbul-lib-instrument');
|
|
|
|
module.exports = function (source, sourceMap) {
|
|
const instrumenter = libInstrument.createInstrumenter({
|
|
esModules: true
|
|
});
|
|
|
|
instrumenter.instrument(source, this.resourcePath, (err, instrumentedSource) => {
|
|
this.callback(err, instrumentedSource, instrumenter.lastSourceMap());
|
|
}, sourceMap);
|
|
};
|