Skip to content

Commit 2e75202

Browse files
committed
refactor(@angular-devkit/build-angular): disable SW and index generation during i18n extraction
This commit disables index and service worker generation when using the i18n extraction together with the esbuild builders. (cherry picked from commit 479b67f)
1 parent 6815f13 commit 2e75202

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/angular_devkit/build_angular/src/builders/extract-i18n/application-extraction.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,11 @@ export async function extractMessages(
3535
builderName,
3636
)) as unknown as ApplicationBuilderInternalOptions;
3737
buildOptions.optimization = false;
38-
buildOptions.sourceMap = { scripts: true, vendor: true };
38+
buildOptions.sourceMap = { scripts: true, vendor: true, styles: false };
3939
buildOptions.localize = false;
4040
buildOptions.budgets = undefined;
41+
buildOptions.index = false;
42+
buildOptions.serviceWorker = false;
4143

4244
let build;
4345
if (builderName === '@angular-devkit/build-angular:application') {

0 commit comments

Comments
 (0)