Sha256: 5193717650611b012190a2f58bc3483408b054444b055e3f7743651dffa498d1

Contents?: true

Size: 598 Bytes

Versions: 3

Compression:

Stored size: 598 Bytes

Contents

/**
@module ember
*/
import { precompile as glimmerPrecompile } from '@glimmer/compiler';
import compileOptions from './compile-options';
/**
  Uses HTMLBars `compile` function to process a string into a compiled template string.
  The returned string must be passed through `Ember.HTMLBars.template`.

  This is not present in production builds.

  @private
  @method precompile
  @param {String} templateString This is the string to be compiled by HTMLBars.
*/
export default function precompile(templateString, options) {
    return glimmerPrecompile(templateString, compileOptions(options));
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
discourse-ember-source-3.6.0.0 dist/es/ember-template-compiler/lib/system/precompile.js
discourse-ember-source-3.5.1.1 dist/es/ember-template-compiler/lib/system/precompile.js
discourse-ember-source-3.5.1.0 dist/dist/es/ember-template-compiler/lib/system/precompile.js