message: fix: avoid Array.prototype.find for interop with patternplate < 1
diff: import {isEmpty, isPlainObject} from 'lodash';
  +import {find} from 'lodash/fp';
  import {Script} from 'vm';
  +const findExport = find(isExport);
  +
  export default (file, context) => {
  const source = file.buffer.toString('utf-8');
  const script = new Script(source);
  @@ -12,12 +15,14 @@ export default (file, context) => {
  displayErrors: true
  });
  - return [context.exports, context.module.exports].find(e => {
  - if (isPlainObject(e) && !isEmpty(e)) {
  + return findExport([context.exports, context.module.exports]);
  +};
  +
  +function isExport(o) {
  + if (isPlainObject(o) && !isEmpty(o)) {
  return true;
  }
  - if (!isPlainObject(e)) {
  - return Boolean(e);
  + if (!isPlainObject(o)) {
  + return Boolean(o);
  + }
  }
  - });
  -};
  