(bundleCode)
| 5 | console.log(`[Bundle Metadata] Project root: ${PROJECT_ROOT}`); |
| 6 | |
| 7 | function calculateContentHash(bundleCode) { |
| 8 | const hash = crypto.createHash('sha256'); |
| 9 | hash.update(bundleCode, 'utf8'); |
| 10 | return hash.digest('hex'); |
| 11 | } |
| 12 | |
| 13 | function generateMetadataInjection(contentHash) { |
| 14 | return `// Auto-injected bundle metadata by Metro plugin |
no outgoing calls
no test coverage detected