wrapWithLicenseHeader() — react Function Reference
Architecture documentation for the wrapWithLicenseHeader() function in wrappers.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 220dd408_f128_ab1a_cd34_b82b74755caf["wrapWithLicenseHeader()"] 0a96609e_e37e_0b13_8c4d_e99f38daf174["wrappers.js"] 220dd408_f128_ab1a_cd34_b82b74755caf -->|defined in| 0a96609e_e37e_0b13_8c4d_e99f38daf174 style 220dd408_f128_ab1a_cd34_b82b74755caf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/rollup/wrappers.js lines 565–585
function wrapWithLicenseHeader(
source,
bundleType,
globalName,
filename,
moduleType
) {
if (bundleType === BROWSER_SCRIPT) {
// Bundles of type BROWSER_SCRIPT get sent straight to the browser without
// additional processing. So we should exclude any extra wrapper comments.
return source;
}
// All the other packages.
const wrapper = licenseHeaderWrappers[bundleType];
if (typeof wrapper !== 'function') {
throw new Error(`Unsupported build type: ${bundleType}.`);
}
return wrapper(source, globalName, filename, moduleType);
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does wrapWithLicenseHeader() do?
wrapWithLicenseHeader() is a function in the react codebase, defined in scripts/rollup/wrappers.js.
Where is wrapWithLicenseHeader() defined?
wrapWithLicenseHeader() is defined in scripts/rollup/wrappers.js at line 565.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free