Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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);
}