How to use the @glimmer/program.RuntimeProgramImpl.hydrate function in @glimmer/program

To help you get started, we’ve selected a few @glimmer/program examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github glimmerjs / glimmer-vm / packages / @glimmer / runtime / lib / environment.ts View on Github external
export function AotRuntime(
  options: EnvironmentOptions,
  program: CompilerArtifacts,
  resolver: RuntimeResolverDelegate = {},
  delegate: EnvironmentDelegate = {}
): AotRuntimeContext {
  let env = new EnvironmentImpl(options, delegate);

  return {
    env,
    resolver: new DefaultRuntimeResolver(resolver),
    program: RuntimeProgramImpl.hydrate(program),
  };
}