(options: Options)
| 230 | } |
| 231 | |
| 232 | static async create(options: Options): Promise<IHasteMap> { |
| 233 | if (options.hasteMapModulePath) { |
| 234 | const CustomHasteMap = require(options.hasteMapModulePath); |
| 235 | return new CustomHasteMap(options); |
| 236 | } |
| 237 | const hasteMap = new HasteMap(options); |
| 238 | |
| 239 | await hasteMap.setupCachePath(options); |
| 240 | |
| 241 | return hasteMap; |
| 242 | } |
| 243 | |
| 244 | private constructor(options: Options) { |
| 245 | super(); |