* Import resolver Babel plugin configuration. * @param {'preact' | 'react'} buildFor * @return {!Array}
(buildFor = 'preact')
| 98 | * @return {!Array} |
| 99 | */ |
| 100 | function getImportResolverPlugin(buildFor = 'preact') { |
| 101 | return ['module-resolver', getImportResolver(buildFor)]; |
| 102 | } |
| 103 | |
| 104 | /** |
| 105 | * Resolves a filepath using the same logic as the rest of our build pipeline (babel module-resolver). |
no test coverage detected