   #                     version.
   #
   # Returns a {Boolean}.
-  versionMatch: (expectedVersion) -> semver.satisfies(@version, expectedVersion)
+  versionMatch: (expectedVersion) ->
+    semver ?= require 'semver'
+    semver.satisfies(@version, expectedVersion)
 
   # Public: Toggles the minimap activation state.
   toggle: ->

{deprecate} = require 'grim'
EmitterMixin = require('emissary').Emitter
{Emitter} = require 'event-kit'
semver = require 'semver'

ViewManagement = require './mixins/view-management'
PluginManagement = require './mixins/plugin-management'
MinimapPluginGeneratorView = require './minimap-plugin-generator-view'

require '../vendor/resizeend'



  # Internal: Used only for old events deprecation.
  on: (eventName) ->
    deprecate ?= require('grim').deprecate
    switch eventName
      when 'activated'
        deprecate("Use Minimap::onDidActivate instead.")
