Dont use CommonJS (require, module.exports) anywhere (#24913)
				
					
				
			This commit is contained in:
		@@ -2,9 +2,8 @@
 | 
			
		||||
// Tools for performance debugging, only enabled in development mode.
 | 
			
		||||
// Open up Chrome Dev Tools, then Timeline, then User Timing to see output.
 | 
			
		||||
// Also see config/webpack/loaders/mark.js for the webpack loader marks.
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
let marky;
 | 
			
		||||
import * as marky from 'marky';
 | 
			
		||||
 | 
			
		||||
if (process.env.NODE_ENV === 'development') {
 | 
			
		||||
  if (typeof performance !== 'undefined' && performance.setResourceTimingBufferSize) {
 | 
			
		||||
@@ -13,7 +12,6 @@ if (process.env.NODE_ENV === 'development') {
 | 
			
		||||
    performance.setResourceTimingBufferSize(Infinity);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  marky = require('marky');
 | 
			
		||||
  // allows us to easily do e.g. ReactPerf.printWasted() while debugging
 | 
			
		||||
  //window.ReactPerf = require('react-addons-perf');
 | 
			
		||||
  //window.ReactPerf.start();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user