// @flow

/**
 * Creates an object that maps request to module ID.
 */
export default (manifest: Object): Object => {
  const map = {};
  const paths = Object.keys(manifest.content);

  for (const path of paths) {
    map[path] = manifest.content[path].id;
  }

  return map;
};

@@ -60,16 +60,246 @@
 ule ID.%0A
+ *%0A * A 'request' is a require path used in the application%0A * resolved to a relative path to the project context, e.g.%0A * if %60./src/test/index.js%60 requires %60require('./style.css')%60%0A * the the 'request' is %60./src/test.style.css%60.%0A
  */%0Aexpo

document what is a request in the context of a manifest