(config: ResolvingValdiConfiguration)
| 950 | } |
| 951 | |
| 952 | export function applyValdiDefaults(config: ResolvingValdiConfiguration): AnyValdiConfiguration { |
| 953 | if (config.request !== 'attach') { |
| 954 | throw new Error('Valdi targets only support \'attach\''); |
| 955 | } |
| 956 | const filled = { ...valdiAttachConfigDefaults, ...config }; |
| 957 | |
| 958 | if (!config.sourceMapPathOverrides && config.cwd) { |
| 959 | filled.sourceMapPathOverrides = defaultSourceMapPathOverrides(config.cwd); |
| 960 | } |
| 961 | |
| 962 | return filled; |
| 963 | } |
| 964 | |
| 965 | export function applyChromeDefaults(config: ResolvingChromeConfiguration): AnyChromeConfiguration { |
| 966 | return config.request === 'attach' |
no test coverage detected