docs: function compile$$1 (
    template,
    options
  ) {
    options = options || {};
    var errors = [];
    // allow injecting modules/directives
    var baseModules = baseOptions.modules || [];
    var modules = options.modules
      ? baseModules.concat(options.modules)
      : baseModules;
    var directives = options.directives
      ? extend(extend({}, baseOptions.directives), options.directives)
      : baseOptions.directives;
    var compiled = compile$1(template, {
      modules: modules,
      directives: directives,
      warn: function (msg) {
        errors.push(msg);
      }
    });
    compiled.errors = errors.concat(detectErrors(compiled.ast));
    return compiled
  }