Skip to content

Commit

Permalink
fix(export-map): remove extra optionsHashesCache's key
Browse files Browse the repository at this point in the history
  • Loading branch information
kosmotema committed Jun 28, 2024
1 parent 9846c3d commit 96bf9ba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils/export-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1104,15 +1104,14 @@ function childContext(
}

type OptionsHashesCache = Record<
'settings' | 'parserOptions' | 'parserMeta' | 'languageOptions',
'settings' | 'parserOptions' | 'parserMeta',
{ value: unknown; hash: string }
>

const optionsHashesCache: OptionsHashesCache = {
settings: { value: null, hash: '' },
parserOptions: { value: null, hash: '' },
parserMeta: { value: null, hash: '' },
languageOptions: { value: null, hash: '' },
}

function getOptionsHash(key: keyof OptionsHashesCache, value: unknown) {
Expand Down

0 comments on commit 96bf9ba

Please sign in to comment.