MCPcopy Create free account
hub / github.com/adobe/react-spectrum / name

Function name

packages/dev/s2-docs/S2DocsNamer.js:5–14  ·  view source on GitHub ↗
({bundle})

Source from the content-addressed store, hash-verified

3
4module.exports = new Namer({
5 name({bundle}) {
6 // Content hashing plant images messes up RSC parsing, and we don't expect these to ever change.
7 let asset = bundle.getMainEntry();
8 if (
9 asset &&
10 asset.filePath.startsWith(path.join(__dirname, 'pages/react-aria/examples/plants/plants'))
11 ) {
12 return 'assets/plants/' + path.basename(asset.filePath);
13 }
14 }
15});

Callers 1

convertStylePropsFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected