Skip to content
This repository was archived by the owner on Sep 6, 2025. It is now read-only.

Commit ca47c03

Browse files
authored
fix(angular-rspack): add node_modules to includePaths if populated (#126)
1 parent c156394 commit ca47c03

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

packages/angular-rspack/src/lib/models/normalize-options.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,14 @@ export async function normalizeOptions(
216216
type: budget.type as any,
217217
}));
218218

219+
const stylePreprocessorOptions = options.stylePreprocessorOptions ?? {};
220+
if (stylePreprocessorOptions.includePaths?.length) {
221+
stylePreprocessorOptions.includePaths = [
222+
...stylePreprocessorOptions.includePaths,
223+
'node_modules',
224+
];
225+
}
226+
219227
return {
220228
advancedOptimizations,
221229
appShell: options.appShell ?? false,
@@ -257,7 +265,7 @@ export async function normalizeOptions(
257265
ssr: normalizedSsr,
258266
statsJson: options.statsJson ?? false,
259267
styles: options.styles ?? [],
260-
stylePreprocessorOptions: options.stylePreprocessorOptions,
268+
stylePreprocessorOptions,
261269
subresourceIntegrity: options.subresourceIntegrity ?? false,
262270
supportedBrowsers: getSupportedBrowsers(root, { warn: console.warn }),
263271
tsConfig,

0 commit comments

Comments
 (0)