mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-23 11:57:46 +08:00
Unify source map approach for RA bundles on iOS/Android
Reviewed By: javache Differential Revision: D3229780 fb-gh-sync-id: a3148d7626b32a2e6803ae8c35ac75025a992a32 fbshipit-source-id: a3148d7626b32a2e6803ae8c35ac75025a992a32
This commit is contained in:
committed by
Facebook Github Bot 6
parent
6cae8b7c02
commit
cccb8db175
@@ -57,4 +57,11 @@ function combineSourceMaps({modules, withCustomOffsets}) {
|
||||
return sourceMap;
|
||||
}
|
||||
|
||||
module.exports = {countLines, lineToLineSourceMap, combineSourceMaps};
|
||||
const joinModules = modules => modules.map(m => m.code).join('\n');
|
||||
|
||||
module.exports = {
|
||||
countLines,
|
||||
lineToLineSourceMap,
|
||||
combineSourceMaps,
|
||||
joinModules,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user