Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): resolve i18n outFile from workspa…
Browse files Browse the repository at this point in the history
…ceRoot
  • Loading branch information
alan-agius4 committed Sep 28, 2020
1 parent bda8bc8 commit 8d0922e
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -122,6 +122,7 @@ export async function execute(
// AngularCompilerPlugin doesn't support genDir so we have to adjust outFile instead.
outFile = path.join(options.outputPath, outFile);
}
outFile = path.resolve(context.workspaceRoot, outFile);

if (!context.target || !context.target.project) {
throw new Error('The builder requires a target.');
Expand Down Expand Up @@ -163,7 +164,7 @@ export async function execute(
// Ivy extraction is the default for Ivy applications.
usingIvy = (isIvyApplication && options.ivy === undefined) || !!options.ivy;

if (options.ivy) {
if (usingIvy) {
if (!isIvyApplication) {
context.logger.warn(
'Ivy extraction enabled but application is not Ivy enabled. Extraction may fail.',
Expand Down

0 comments on commit 8d0922e

Please sign in to comment.