ember/ember-3.16.10.template-compiler.js
/**
    Uses HTMLBars `compile` function to process a string into a compiled template.
  
    This is not present in production builds.
  
    @private
    @method compile
    @param {String} templateString This is the string to be compiled by HTMLBars.
    @param {Object} options This is an options hash to augment the compiler options.
  */
Uses HTMLBars `compile` function to process a string into a compiled template.
This is not present in production builds.
Uses HTMLBars ` compile ` function to process a string into a compiled template . This is not present in production builds .
function compile(templateString, options) {
    if (options === void 0) {
      options = {};
    }
    if (!template && (0, _require.has)('@ember/-internals/glimmer')) {
      template = (0, _require.default)("@ember/-internals/glimmer").template;
    }
    if (!template) {
      throw new Error('Cannot call `compile` with only the template compiler loaded. Please load `ember.debug.js` or `ember.prod.js` prior to calling `compile`.');
    }
    return template(evaluate((0, _precompile.default)(templateString, options)));
  }
function compile ( templateString , options ) { if ( options === void 0 ) { options = { } ; } if ( ! template && ( 0 , _require . has ) ( '@ember/-internals/glimmer' ) ) { template = ( 0 , _require . default ) ( "@ember/-internals/glimmer" ) . template ; } if ( ! template ) { throw new Error ( 'Cannot call `compile` with only the template compiler loaded. Please load `ember.debug.js` or `ember.prod.js` prior to calling `compile`.' ) ; } return template ( evaluate ( ( 0 , _precompile . default ) ( templateString , options ) ) ) ; }
Uses HTMLBars `compile` function to process a string into a compiled template.
Uses HTMLBars ` compile ` function to process a string into a compiled template .
// tslint:disable-next-line:no-require-imports