Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): use stylePreprocessorOptions
Browse files Browse the repository at this point in the history
The `stylePreprocessorOptions` were ignored, meaning that `silenceDeprecations`, for example,
was not used when building tests.

(cherry picked from commit a9a871c)
  • Loading branch information
cexbrayat authored and dgp1130 committed Nov 21, 2024
1 parent 3a1c95e commit b63123f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ class AngularAssetsMiddleware {
}

function injectKarmaReporter(
context: BuilderContext,
buildOptions: BuildOptions,
buildIterator: AsyncIterator<Result>,
karmaConfig: Config & ConfigOptions,
Expand Down Expand Up @@ -207,7 +206,7 @@ export function execute(
// If `--watch` is explicitly enabled or if we are keeping the Karma
// process running, we should hook Karma into the build.
if (buildIterator) {
injectKarmaReporter(context, buildOptions, buildIterator, karmaConfig, subscriber);
injectKarmaReporter(buildOptions, buildIterator, karmaConfig, subscriber);
}

// Complete the observable once the Karma server returns.
Expand Down Expand Up @@ -352,6 +351,7 @@ async function initializeApplication(
polyfills: normalizePolyfills(options.polyfills),
webWorkerTsConfig: options.webWorkerTsConfig,
watch: options.watch ?? !karmaOptions.singleRun,
stylePreprocessorOptions: options.stylePreprocessorOptions,
};

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

0 comments on commit b63123f

Please sign in to comment.