function addTemplateToCompiler (mainCompiler, templatePath) {
  const childCompiler = getChildCompiler(mainCompiler);
  const isNew = childCompiler.addTemplate(templatePath);
  if (isNew) {
    clearCache(mainCompiler);
  }
}
function addTemplateToCompiler (mainCompiler, templatePath) {
  const childCompiler = getChildCompiler(mainCompiler);
  const isNew = childCompiler.addTemplate(templatePath);
  if (isNew) {
    clearCache(mainCompiler);
  }
}
function addTemplateToCompiler ( mainCompiler , templatePath ) { const childCompiler = getChildCompiler ( mainCompiler ) ; const isNew = childCompiler . addTemplate ( templatePath ) ; if ( isNew ) { clearCache ( mainCompiler ) ; } }
Register a template for the current main compiler
@param {WebpackCompiler} mainCompiler
@param {string} templatePath
Register a template for the current main compiler
Add a template to the compiler