forbidFBJSImports() — react Function Reference
Architecture documentation for the forbidFBJSImports() function in build.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 57691b08_3c9d_40fe_9288_af857c874d77["forbidFBJSImports()"] c80a1a72_0983_3915_42ad_1026a11c0a09["build.js"] 57691b08_3c9d_40fe_9288_af857c874d77 -->|defined in| c80a1a72_0983_3915_42ad_1026a11c0a09 67c68ebd_67d3_ae9b_4fd2_ce22eb678392["getPlugins()"] 67c68ebd_67d3_ae9b_4fd2_ce22eb678392 -->|calls| 57691b08_3c9d_40fe_9288_af857c874d77 style 57691b08_3c9d_40fe_9288_af857c874d77 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/rollup/build.js lines 340–352
function forbidFBJSImports() {
return {
name: 'forbidFBJSImports',
resolveId(importee, importer) {
if (/^fbjs\//.test(importee)) {
throw new Error(
`Don't import ${importee} (found in ${importer}). ` +
`Use the utilities in packages/shared/ instead.`
);
}
},
};
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does forbidFBJSImports() do?
forbidFBJSImports() is a function in the react codebase, defined in scripts/rollup/build.js.
Where is forbidFBJSImports() defined?
forbidFBJSImports() is defined in scripts/rollup/build.js at line 340.
What calls forbidFBJSImports()?
forbidFBJSImports() is called by 1 function(s): getPlugins.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free