ember/ember-3.4.8.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 (!template && (0, _require2.has)('ember-glimmer')) {
            template = (0, _require2.default)('ember-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`.');
        }
        var precompiledTemplateString = (0, _precompile.default)(templateString, options);
        var templateJS = new Function('return ' + precompiledTemplateString)();
        return template(templateJS);
    }
function compile ( templateString , options ) { if ( ! template && ( 0 , _require2 . has ) ( 'ember-glimmer' ) ) { template = ( 0 , _require2 . default ) ( 'ember-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`.' ) ; } var precompiledTemplateString = ( 0 , _precompile . default ) ( templateString , options ) ; var templateJS = new Function ( 'return ' + precompiledTemplateString ) ( ) ; return template ( templateJS ) ; }
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