Downgrade ES6 import to ES5 compat module.exports
Reviewed By: rubennorte Differential Revision: D7498658 fbshipit-source-id: 6825c3010ce13c56f05284448ad9961fe058d7ea
This commit is contained in:
parent
4a814d1370
commit
cea798c57b
|
@ -12,7 +12,7 @@
|
|||
|
||||
'use strict';
|
||||
|
||||
import whatwg from 'whatwg-fetch';
|
||||
const whatwg = require('whatwg-fetch');
|
||||
|
||||
if (whatwg && whatwg.fetch) {
|
||||
module.exports = whatwg;
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
'use strict';
|
||||
|
||||
import AnimatedNode from 'AnimatedNode';
|
||||
const AnimatedNode = require('AnimatedNode');
|
||||
|
||||
export opaque type ____StyleSheetInternalStyleIdentifier_Internal: number = number;
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue