Downgrade ES6 import to ES5 compat module.exports

Reviewed By: rubennorte

Differential Revision: D7498658

fbshipit-source-id: 6825c3010ce13c56f05284448ad9961fe058d7ea
This commit is contained in:
Peter van der Zee 2018-04-05 06:14:52 -07:00 committed by Facebook Github Bot
parent 4a814d1370
commit cea798c57b
3 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@
'use strict';
import whatwg from 'whatwg-fetch';
const whatwg = require('whatwg-fetch');
if (whatwg && whatwg.fetch) {
module.exports = whatwg;

View File

@ -11,7 +11,7 @@
'use strict';
import AnimatedNode from 'AnimatedNode';
const AnimatedNode = require('AnimatedNode');
export opaque type ____StyleSheetInternalStyleIdentifier_Internal: number = number;

View File

@ -11,7 +11,7 @@ const fs = require('fs');
const includes = require('lodash.includes');
const minimatch = require('minimatch');
import { danger, fail, markdown, message, warn } from 'danger';
const { danger, fail, markdown, message, warn } = require('danger');
// Fails if the description is too short.
if (!danger.github.pr.body || danger.github.pr.body.length < 10) {