var CodeMirror = require('codemirror/lib/codemirror.js')
var CmComponent = require('./codemirror.vue')

module.exports = {
  CodeMirror: CodeMirror,
  codemirror: CmComponent,
  install: function (Vue) {
    Vue.component('codemirror', CmComponent)
  }
}

var CodeMirror = require('codemirror/lib/codemirror.js')
import CmComponent from './codemirror.vue'

function install (Vue) {
  Vue.component('codemirror', CmComponent)
}

export default {
  install
}
export {
  CodeMirror,
  CmComponent as codemirror
}

Fix compatibility when vue-loader option `esModule` is true.
Fix compatibility when vue-loader option `esModule` is true.

> The esModule option is now true by default.

https://vue-loader.vuejs.org/en/options.html#esmodule
https://github.com/vuejs/vue-loader/tree/v13.0.0
