diff --git a/react-packager/src/JSTransformer/index.js b/react-packager/src/JSTransformer/index.js index 681f864a..b0bda78f 100644 --- a/react-packager/src/JSTransformer/index.js +++ b/react-packager/src/JSTransformer/index.js @@ -8,6 +8,7 @@ */ 'use strict'; +const Activity = require('../Activity'); const Promise = require('promise'); const declareOpts = require('../lib/declareOpts'); const os = require('os'); @@ -90,10 +91,19 @@ class Transformer { return Promise.reject(new Error('No transform module')); } debug('transforming file', fileName); + const transformEventId = Activity.startEvent( + 'Transforming file', + fileName, + { + telemetric: true, + silent: true, + }, + ); return this ._transform(this._transformModulePath, fileName, code, options) .then(result => { debug('done transforming file', fileName); + Activity.endEvent(transformEventId); return result; }) .catch(error => {