mirror of https://github.com/status-im/metro.git
Fix packager breakages on node4
Summary: This fixes issues that only surface when running with node4 / npm2. Closes https://github.com/facebook/react-native/pull/11888 Differential Revision: D4415021 Pulled By: bestander fbshipit-source-id: 8672cd892c9dae41cc7b5b7b3227eb24dd780d22
This commit is contained in:
parent
66714e45da
commit
c8962a1d9b
|
@ -14,7 +14,7 @@
|
||||||
const Logger = require('./src/Logger');
|
const Logger = require('./src/Logger');
|
||||||
|
|
||||||
const debug = require('debug');
|
const debug = require('debug');
|
||||||
const invariant = require('invariant');
|
const invariant = require('fbjs/lib/invariant');
|
||||||
|
|
||||||
import type {Reporter} from './src/lib/reporting';
|
import type {Reporter} from './src/lib/reporting';
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const babel = require('babel-core');
|
const babel = require('babel-core');
|
||||||
const invariant = require('invariant');
|
const invariant = require('fbjs/lib/invariant');
|
||||||
|
|
||||||
import type {Ast, SourceMap} from 'babel-core';
|
import type {Ast, SourceMap} from 'babel-core';
|
||||||
const t = babel.types;
|
const t = babel.types;
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
const constantFolding = require('./constant-folding');
|
const constantFolding = require('./constant-folding');
|
||||||
const extractDependencies = require('./extract-dependencies');
|
const extractDependencies = require('./extract-dependencies');
|
||||||
const inline = require('./inline');
|
const inline = require('./inline');
|
||||||
const invariant = require('invariant');
|
const invariant = require('fbjs/lib/invariant');
|
||||||
const minify = require('./minify');
|
const minify = require('./minify');
|
||||||
|
|
||||||
import type {LogEntry} from '../../Logger/Types';
|
import type {LogEntry} from '../../Logger/Types';
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
const crypto = require('crypto');
|
const crypto = require('crypto');
|
||||||
const imurmurhash = require('imurmurhash');
|
const imurmurhash = require('imurmurhash');
|
||||||
const invariant = require('invariant');
|
const invariant = require('fbjs/lib/invariant');
|
||||||
const jsonStableStringify = require('json-stable-stringify');
|
const jsonStableStringify = require('json-stable-stringify');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const request = require('request');
|
const request = require('request');
|
||||||
|
|
|
@ -17,7 +17,7 @@ const TransformCache = require('../lib/TransformCache');
|
||||||
const crypto = require('crypto');
|
const crypto = require('crypto');
|
||||||
const docblock = require('./DependencyGraph/docblock');
|
const docblock = require('./DependencyGraph/docblock');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const invariant = require('invariant');
|
const invariant = require('fbjs/lib/invariant');
|
||||||
const isAbsolutePath = require('absolute-path');
|
const isAbsolutePath = require('absolute-path');
|
||||||
const jsonStableStringify = require('json-stable-stringify');
|
const jsonStableStringify = require('json-stable-stringify');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue