From ed89d5ba0d8635195f5ccdb81b71721a88ba27e6 Mon Sep 17 00:00:00 2001 From: Konstantin Raev Date: Tue, 2 Aug 2016 13:01:43 -0700 Subject: [PATCH] fixed trunk: wrong way to require a module Summary: This should fix https://travis-ci.org/facebook/react-native/jobs/149264391 Closes https://github.com/facebook/react-native/pull/9169 Differential Revision: D3657544 Pulled By: javache fbshipit-source-id: d49ed0355cc5da72d1d8f40dfa03e669f2291db1 --- local-cli/server/middleware/jscProfilerMiddleware.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local-cli/server/middleware/jscProfilerMiddleware.js b/local-cli/server/middleware/jscProfilerMiddleware.js index 8eee0af5e..c8890a23f 100644 --- a/local-cli/server/middleware/jscProfilerMiddleware.js +++ b/local-cli/server/middleware/jscProfilerMiddleware.js @@ -8,7 +8,7 @@ */ 'use strict'; -const SourceMapConsumer = require('../../../node_modules/source-map').SourceMapConsumer; +const SourceMapConsumer = require('source-map').SourceMapConsumer; const fs = require('fs'); const http = require('http'); const urlLib = require('url');