[react-packager][streamline oss] Move open sourced JS source to react-native-github

This commit is contained in:
Spencer Ahrens
2015-02-19 20:10:52 -08:00
commit efae175a8e
434 changed files with 44658 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
/**
* Copyright 2004-present Facebook. All Rights Reserved.
*
* @providesModule loadSourceMap
*/
'use strict';
var SourceMapConsumer = require('SourceMap').SourceMapConsumer;
var sourceMapInstance;
function loadSourceMap() {
if (sourceMapInstance !== undefined) {
return sourceMapInstance;
}
if (!global.RAW_SOURCE_MAP) {
return null;
}
sourceMapInstance = new SourceMapConsumer(global.RAW_SOURCE_MAP);
return sourceMapInstance;
}
module.exports = loadSourceMap;