(target, key)
| 116 | |
| 117 | return new Proxy(this, { |
| 118 | get(target, key) { |
| 119 | if (target[key]) { |
| 120 | return target[key]; |
| 121 | } |
| 122 | |
| 123 | const moduleName = MODULE_KEY_TO_NAME_MAPPING[key]; |
| 124 | if (moduleName) { |
| 125 | target.loadModule(`workbox-${moduleName}`); |
| 126 | } |
| 127 | |
| 128 | return target[key]; |
| 129 | }, |
| 130 | }); |
| 131 | } |
| 132 |
no test coverage detected