diff --git a/x2i/index.ts b/x2i/index.ts index 40c4d68..4ab7347 100644 --- a/x2i/index.ts +++ b/x2i/index.ts @@ -77,8 +77,9 @@ const matchType: { [key: string]: IMatchInstructions } = { * @returns Compiled keys. */ function readKeys(fpath: string) { - return yaml + var keys: any = yaml .safeLoad(fs.readFileSync(fpath, "utf8")) + return keys .map(compileKey) .filter(Boolean) as CompiledReplacer[]; }