How to use the @glimmer/compiler-delegates.MUCompilerDelegate function in @glimmer/compiler-delegates

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 3 years ago

Package Health Score

42 / 100
Full package analysis

Popular @glimmer/compiler-delegates functions

Similar packages