MCPcopy Create free account
hub / github.com/webpack/webpack-cli / #getArguments

Method #getArguments

packages/webpack-cli/src/webpack-cli.ts:1282–1298  ·  view source on GitHub ↗
(webpackMod: typeof webpack, schema: Schema)

Source from the content-addressed store, hash-verified

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,

Callers 3

schemaToOptionsMethod · 0.95
WebpackCLIClass · 0.95
internalBuildConfigMethod · 0.95

Calls 1

getMethod · 0.80

Tested by

no test coverage detected