code: function tryToResolveRequireModId(t, path, state) {
      let opts = state.opts || {};
      let resolveRequireId = opts.resolveDepRequireId;
  
      let exportNode = path.node;
      let source = exportNode.source;
      if (!t.isStringLiteral(source)) {
          return;
      }
  
      let modId = source.value;
      let newModId = resolveRequireId(modId);
      if (newModId && newModId !== modId) {
          let requireIdNode = path.get('source');
          requireIdNode.replaceWith(
              t.stringLiteral(newModId)
          );
      }
  }
docs: Resolve the required module id and replace the old module id using the
  resolved module id.
  
  @inner
  @param {Object} t the babel type definition
  @param {Object} path the node path
  @param {Object} state the transformation plugin state