title: Unable to resolve module `perf_hooks`
body: <p>I am trying to use perf_hooks from the nodeJS Performance API in my React Native project. Below is my code</p>
  <pre><code>import {performance} from 'perf_hooks';
  
  export const measure = (
    target: Object,
    propertyKey: string,
    descriptor: PropertyDescriptor
  ) =&gt; {
    const originalMethod = descriptor.value;
    descriptor.value = function (...args) {
      const start = performance.now();
      const result = originalMethod.apply(this, args);
      const finish = performance.now();
      console.log(`Execution time: ${finish - start} milliseconds`);
      return result;
    };
  
    return descriptor;
  };
  </code></pre>
  <p>I keep getting the same error.
  error: bundling failed: Error: Unable to resolve module <code>perf_hooks</code> from <code>src/utils/metrics.ts</code>: perf_hooks could not be found within the project.</p>
  <p>Performance API is available from node version 8.x and my node -v response is 10.16.1.</p>
  <p>I see that there is perf_hooks present in my node_modules as well under the <code>@types/node/perf_hooks</code> folder.</p>