text: 'use strict';
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.injectDriver = exports.getDriver = exports.setDriver = undefined;
  
  var _host = require('./vdom/host');
  
  var _host2 = _interopRequireDefault(_host);
  
  var _weex = require('./drivers/weex');
  
  var _weex2 = _interopRequireDefault(_weex);
  
  var _browser = require('./drivers/browser');
  
  var _browser2 = _interopRequireDefault(_browser);
  
  var _universalEnv = require('universal-env');
  
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  
  var setDriver = exports.setDriver = function setDriver(driver) {
    _host2.default.driver = driver;
  };
  
  var getDriver = exports.getDriver = function getDriver() {
    return _host2.default.driver;
  };
  
  var injectDriver = exports.injectDriver = function injectDriver() {
    var driver = getDriver();
  
    // Inject driver
    if (!driver) {
      if (_universalEnv.isWeex) {
        driver = _weex2.default;
      } else if (_universalEnv.isWeb) {
        driver = _browser2.default;
      } else {
        throw Error('No builtin driver matched');
      }
  
      setDriver(driver);
    }
  };