Skip to content

Commit

Permalink
fixup! refactor(compiler): allow disabling external symbol factory re…
Browse files Browse the repository at this point in the history
…exports

Disable symbol re-exports by default
  • Loading branch information
devversion committed Feb 7, 2019
1 parent 52c1ed2 commit e6e0344
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/compiler-cli/src/transformers/program.ts
Expand Up @@ -933,6 +933,13 @@ function getAotCompilerOptions(options: CompilerOptions): AotCompilerOptions {
missingTranslation = core.MissingTranslationStrategy.Ignore;
}

// If the "createExternalSymbolFactoryReexports" option has not been specified, we
// set it to "false" because we want to disable symbol factory re-exports unless
// the developer explicitly opted in (e.g. blaze opts in for symbol re-exports)
if (options.createExternalSymbolFactoryReexports === undefined) {
options.createExternalSymbolFactoryReexports = false;
}

return {
locale: options.i18nInLocale,
i18nFormat: options.i18nInFormat || options.i18nOutFormat,
Expand Down

0 comments on commit e6e0344

Please sign in to comment.