(
key: CompilerDeprecationTypes | 'MODE',
{ compatConfig }: MergedParserOptions | TransformContext,
)
| 92 | } |
| 93 | |
| 94 | function getCompatValue( |
| 95 | key: CompilerDeprecationTypes | 'MODE', |
| 96 | { compatConfig }: MergedParserOptions | TransformContext, |
| 97 | ) { |
| 98 | const value = compatConfig && compatConfig[key] |
| 99 | if (key === 'MODE') { |
| 100 | return value || 3 // compiler defaults to v3 behavior |
| 101 | } else { |
| 102 | return value |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | export function isCompatEnabled( |
| 107 | key: CompilerDeprecationTypes, |
no outgoing calls
no test coverage detected