(webpackMod: typeof webpack, schema: Schema)
| 1280 | >(); |
| 1281 | |
| 1282 | #getArguments(webpackMod: typeof webpack, schema: Schema) { |
| 1283 | let perModuleCache = this.#argumentsCache.get(webpackMod); |
| 1284 | |
| 1285 | if (!perModuleCache) { |
| 1286 | perModuleCache = new Map(); |
| 1287 | this.#argumentsCache.set(webpackMod, perModuleCache); |
| 1288 | } |
| 1289 | |
| 1290 | let args = perModuleCache.get(schema)?.deref(); |
| 1291 | |
| 1292 | if (!args) { |
| 1293 | args = webpackMod.cli.getArguments(schema); |
| 1294 | perModuleCache.set(schema, new WeakRef(args)); |
| 1295 | } |
| 1296 | |
| 1297 | return args; |
| 1298 | } |
| 1299 | |
| 1300 | schemaToOptions( |
| 1301 | webpackMod: typeof webpack, |
no test coverage detected