Skip to content

Commit b63123f

Browse files
cexbrayatdgp1130
authored andcommitted
fix(@angular-devkit/build-angular): use stylePreprocessorOptions
The `stylePreprocessorOptions` were ignored, meaning that `silenceDeprecations`, for example, was not used when building tests. (cherry picked from commit a9a871c)
1 parent 3a1c95e commit b63123f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/angular_devkit/build_angular/src/builders/karma/application_builder.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ class AngularAssetsMiddleware {
107107
}
108108

109109
function injectKarmaReporter(
110-
context: BuilderContext,
111110
buildOptions: BuildOptions,
112111
buildIterator: AsyncIterator<Result>,
113112
karmaConfig: Config & ConfigOptions,
@@ -207,7 +206,7 @@ export function execute(
207206
// If `--watch` is explicitly enabled or if we are keeping the Karma
208207
// process running, we should hook Karma into the build.
209208
if (buildIterator) {
210-
injectKarmaReporter(context, buildOptions, buildIterator, karmaConfig, subscriber);
209+
injectKarmaReporter(buildOptions, buildIterator, karmaConfig, subscriber);
211210
}
212211

213212
// Complete the observable once the Karma server returns.
@@ -352,6 +351,7 @@ async function initializeApplication(
352351
polyfills: normalizePolyfills(options.polyfills),
353352
webWorkerTsConfig: options.webWorkerTsConfig,
354353
watch: options.watch ?? !karmaOptions.singleRun,
354+
stylePreprocessorOptions: options.stylePreprocessorOptions,
355355
};
356356

357357
// Build tests with `application` builder, using test files as entry points.

0 commit comments

Comments
 (0)