code: function listenBefore(hook) {
        return history.listenBefore(function (location, callback) {
          _runTransitionHook2['default'](hook, addBasename(location), callback);
        });
      }
docs: Override all read methods with basename-aware versions.