import parseJs from 'prettier/parser-babylon';

function parse(source) {
  return parseJs.parsers.babylon.parse(source);
}

export default {
  parse,
};

import parseJs from 'prettier/parser-babylon';

function parse(source) {
  return parseJs.parsers.babel.parse(source);
}

export default {
  parse,
};

FIX babylon -> babel rename
FIX babylon -> babel rename

https://github.com/prettier/prettier/pull/5647
