diff --git a/packages/metro/src/DeltaBundler/Serializers/getAssets.js b/packages/metro/src/DeltaBundler/Serializers/getAssets.js index 682bd86f43..362b5bf60e 100644 --- a/packages/metro/src/DeltaBundler/Serializers/getAssets.js +++ b/packages/metro/src/DeltaBundler/Serializers/getAssets.js @@ -37,7 +37,8 @@ async function getAssets( if ( isJsModule(module) && processModuleFilter(module) && - getJsOutput(module).type === 'js/module/asset' + getJsOutput(module).type === 'js/module/asset' && + path.relative(options.projectRoot, module.path) !== 'package.json' ) { promises.push( getAssetData(