How to use the metro-source-map.fromRawMappingsNonBlocking function in metro-source-map

To help you get started, we’ve selected a few metro-source-map examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github facebook / metro / packages / metro / src / DeltaBundler / Serializers / sourceMapGenerator.js View on Github external
async function sourceMapGeneratorNonBlocking(
  modules: $ReadOnlyArray>,
  options: {|
    +excludeSource: boolean,
    +processModuleFilter: (module: Module<>) => boolean,
  |},
): ReturnType {
  const sourceMapInfos = await new Promise(resolve => {
    getSourceMapInfosImpl(false, resolve, modules, options);
  });
  return fromRawMappingsNonBlocking(sourceMapInfos);
}