module() — react Function Reference
Architecture documentation for the module() function in parse-params.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 59149120_fa4e_9055_da9b_a68c2ab081d6["module()"] 69885c32_84b1_d76c_ce67_a49da9e21a15["parse-params.js"] 59149120_fa4e_9055_da9b_a68c2ab081d6 -->|defined in| 69885c32_84b1_d76c_ce67_a49da9e21a15 style 59149120_fa4e_9055_da9b_a68c2ab081d6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/release/publish-commands/parse-params.js lines 49–72
module.exports = () => {
const params = commandLineArgs(paramDefinitions);
splitCommaParams(params.skipPackages);
splitCommaParams(params.onlyPackages);
splitCommaParams(params.tags);
params.tags.forEach(tag => {
switch (tag) {
case 'latest':
case 'canary':
case 'next':
case 'experimental':
case 'alpha':
case 'beta':
case 'rc':
case 'untagged':
break;
default:
console.error('Unsupported tag: "' + tag + '"');
process.exit(1);
break;
}
});
return params;
};
Domain
Subdomains
Source
Frequently Asked Questions
What does module() do?
module() is a function in the react codebase, defined in scripts/release/publish-commands/parse-params.js.
Where is module() defined?
module() is defined in scripts/release/publish-commands/parse-params.js at line 49.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free