See my comment in https://github.com/facebook/react/pull/11291#issuecomment-338974574.
I verified https://github.com/facebook/react/pull/11291 introduced this regression.
/**
 * Copyright (c) 2013-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
'use strict';
var evalToString = require('../shared/evalToString');
var existingErrorMap = require('./codes.json');
var invertObject = require('./invertObject');
var errorMap = invertObject(existingErrorMap);
module.exports = function(babel) {
  var t = babel.types;
  var SEEN_SYMBOL = Symbol('replace-invariant-error-codes.seen');
  
  function getProdInvariantIdentifier(path, localState) {