module.exports = process.env.NODE_ENV === 'test'
  ? require('./MemoryLocation')
  : require('./HashLocation');

var canUseDOM = require('react/lib/ExecutionEnvironment').canUseDOM;

module.exports = process.env.NODE_ENV === 'test' || !canUseDOM
  ? require('./MemoryLocation')
  : require('./HashLocation');

Use MemoryLocation by default in non-DOM environments
Use MemoryLocation by default in non-DOM environments
