Skip to content

Commit

Permalink
feat: accept resolveModule in buildStylable
Browse files Browse the repository at this point in the history
  • Loading branch information
idoros committed Nov 26, 2023
1 parent b675dbc commit 7394538
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/cli/src/build-stylable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { WatchHandler } from './watch-handler';

export interface BuildStylableContext
extends Partial<Pick<BuildContext, 'fs' | 'watch' | 'log'>>,
Partial<Pick<StylableConfig, 'resolveNamespace' | 'requireModule'>> {
Partial<Pick<StylableConfig, 'resolveNamespace' | 'requireModule' | 'resolveModule'>> {
resolverCache?: StylableResolverCache;
fileProcessorCache?: StylableConfig['fileProcessorCache'];
diagnosticsManager?: DiagnosticsManager;
Expand Down Expand Up @@ -51,6 +51,7 @@ export async function buildStylable(
outputFiles = new Map(),
requireModule = require,
resolveNamespace,
resolveModule,
configFilePath,
watchOptions = {},
}: BuildStylableContext = {}
Expand Down Expand Up @@ -94,6 +95,7 @@ export async function buildStylable(
resolverCache,
fileProcessorCache,
...config?.defaultConfig,
resolveModule,
resolveNamespace:
resolveNamespace ||
config?.defaultConfig?.resolveNamespace ||
Expand Down

0 comments on commit 7394538

Please sign in to comment.