packages/haste-map-provider/index.js
function buildHasteMap(rootPath, prefix) {
    var prefix = prefix || 'haste-map-provider';
    return new HasteMapBuilder({
        "extensions": [
          "snap",
          "js",
          "json",
          "jsx",
          "node"
        ],
        "ignorePattern": /SOME_COMPLEX_IGNORE_PATTERN_UNLIKELY_TO_HAPPEN/,
        "maxWorkers": 7,
        "name": prefix + "-" + rootPath.replace(/[\/\\]/g, '_'),
        "platforms": [
          "ios",
          "android"
        ],
        "providesModuleNodeModules": [],
        "resetCache": false,
        "retainAllFiles": false,
        "roots": [
          rootPath,
        ],
        "useWatchman": true,
    }).build();
}
function buildHasteMap(rootPath, prefix) {
    var prefix = prefix || 'haste-map-provider';
    return new HasteMapBuilder({
        "extensions": [
          "snap",
          "js",
          "json",
          "jsx",
          "node"
        ],
        "ignorePattern": /SOME_COMPLEX_IGNORE_PATTERN_UNLIKELY_TO_HAPPEN/,
        "maxWorkers": 7,
        "name": prefix + "-" + rootPath.replace(/[\/\\]/g, '_'),
        "platforms": [
          "ios",
          "android"
        ],
        "providesModuleNodeModules": [],
        "resetCache": false,
        "retainAllFiles": false,
        "roots": [
          rootPath,
        ],
        "useWatchman": true,
    }).build();
}
function buildHasteMap ( rootPath , prefix ) { var prefix = prefix || 'haste-map-provider' ; return new HasteMapBuilder ( { "extensions" : [ "snap" , "js" , "json" , "jsx" , "node" ] , "ignorePattern" : / SOME_COMPLEX_IGNORE_PATTERN_UNLIKELY_TO_HAPPEN / , "maxWorkers" : 7 , "name" : prefix + "-" + rootPath . replace ( / [\/\\] / g , '_' ) , "platforms" : [ "ios" , "android" ] , "providesModuleNodeModules" : [ ] , "resetCache" : false , "retainAllFiles" : false , "roots" : [ rootPath , ] , "useWatchman" : true , } ) . build ( ) ; }
Builds a Haste Map
@param {string} rootPath - The rootPath to search sources for
@param {string} prefix - The prefix for the haste map file (optional)
@returns {Promise} A promise of the Haste Map
Builds a Haste Map