({bundle})
| 3 | |
| 4 | module.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 | }); |