How to use @glimmer/compiler-delegates - 1 common examples

To help you get started, we’ve selected a few @glimmer/compiler-delegates 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.js / packages / @glimmer / app-compiler / src / bundle-compiler.ts View on Github external
createBundleCompiler() {
    let delegate;
    let options = this.options;
    let { outputFiles, builtins } = options;
    let [projectPath] = this.inputPaths;

    if (options.mode && options.mode === 'module-unification') {
      delegate = this.delegate = new MUCompilerDelegate({
        projectPath,
        outputFiles,
        builtins,
      });
    } else if (options.delegate) {
      delegate = this.delegate = new options.delegate({
        projectPath,
        outputFiles,
        builtins,
      });
    }

    this.compiler = new BundleCompiler(delegate, options.bundleCompiler);
  }

@glimmer/compiler-delegates

Compiler delegates for @glimmer/bundle compiler

MIT
Latest version published 2 years ago

Package Health Score

46 / 100
Full package analysis

Popular @glimmer/compiler-delegates functions

Similar packages