MCPcopy Index your code
hub / github.com/react/react / forbidFBJSImports

Function forbidFBJSImports

scripts/rollup/build.js:340–352  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

338}
339
340function forbidFBJSImports() {
341 return {
342 name: 'forbidFBJSImports',
343 resolveId(importee, importer) {
344 if (/^fbjs\//.test(importee)) {
345 throw new Error(
346 `Don't import ${importee} (found in ${importer}). ` +
347 `Use the utilities in packages/shared/ instead.`
348 );
349 }
350 },
351 };
352}
353
354function getPlugins(
355 entry,

Callers 1

getPluginsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected