@@ -43,7 +43,7 @@ interface CompileOptions {
43
43
export async function compile ( request : CompileRequest , options ?: CompileOptions ) : Promise < void > {
44
44
const { targets } = request ;
45
45
46
- // console.log ('Request: %o', request);
46
+ // console.warn ('Request: %o', request);
47
47
48
48
const rootDir = path . resolve ( request . rootDir || '.' ) ;
49
49
const cwd = options ?. cwd ;
@@ -61,6 +61,7 @@ export async function compile(request: CompileRequest, options?: CompileOptions)
61
61
const keep = options ?. filter ?.( target ) ?? true ;
62
62
if ( ! keep ) continue ;
63
63
const adjustedTarget : Target = { ...targetOptions , ...target } ;
64
+ // console.warn('adjustedTarget: %o', adjustedTarget);
64
65
const deps = await compileTarget ( adjustedTarget , request , {
65
66
rootDir,
66
67
cwd,
@@ -106,7 +107,7 @@ export async function compileTarget(
106
107
const { rootDir, cwd, checksumFile, conditional } = compileOptions ;
107
108
const { format, sources, trieBase, sort = true , generateNonStrict = false , excludeWordsFrom } = target ;
108
109
const targetDirectory = path . resolve ( rootDir , target . targetDirectory ?? cwd ?? process . cwd ( ) ) ;
109
- const dictionaryDirectives = compileOptions . dictionaryDirectives ;
110
+ const dictionaryDirectives = target . dictionaryDirectives ?? compileOptions . dictionaryDirectives ;
110
111
111
112
const excludeFilter = await createExcludeFilter ( excludeWordsFrom ) ;
112
113
0 commit comments