(newConfig)
| 15 | } |
| 16 | |
| 17 | function configure(newConfig) { |
| 18 | if (typeof newConfig === 'function') { |
| 19 | // Pass the existing config out to the provided function |
| 20 | // and accept a delta in return |
| 21 | newConfig = newConfig(getConfig()) |
| 22 | } |
| 23 | |
| 24 | const {reactStrictMode, ...configForDTL} = newConfig |
| 25 | |
| 26 | configureDTL(configForDTL) |
| 27 | |
| 28 | configForRTL = { |
| 29 | ...configForRTL, |
| 30 | reactStrictMode, |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | export {getConfig, configure} |
no test coverage detected
searching dependent graphs…