message: Webpack-component-loader: load script based on package.json
  Also handle packages that has multiple bundles
diff: @@ -68,7 +68,7 @@ function modifyFluidPackage(packageJson: IPackage): IFluidPackage {
  return fluidPackage;
  }
  -async function getPkg(packageJson: IPackage, scriptId: string, component = false): Promise<IResolvedPackage> {
  +async function getPkg(packageJson: IPackage, scriptIds: string[], component = false): Promise<IResolvedPackage> {
  // Start the creation of pkg.
  if (!packageJson) {
  @@ -80,19 +80,25 @@ async function getPkg(packageJson: IPackage, scriptId: string, component = false
  const legacyPackage = `${fluidPackage.name}@${fluidPackage.version}`;
  // Add script to page, rather than load bundle directly
  + const scriptLoadP: Promise<void>[] = [];
  + const scriptIdPrefix = "pragueDevServerScriptToLoad";
  + let scriptIndex = 0;
  + fluidPackage.fluid.browser.umd.files.forEach((file) => {
  const script = document.createElement("script");
  - script.src = `${window.location.origin}/dist/main.bundle.js`;
  + script.src = file;
  + const scriptId = `${scriptIdPrefix}_${scriptIndex++}`;
  script.id = scriptId;
  + scriptIds.push(scriptId);
  - const onloadP = new Promise((resolve) => {
  + scriptLoadP.push(new Promise((resolve) => {
  script.onload = () => {
  resolve();
  };
  - });
  + }));
  document.body.appendChild(script);
  -
  - return onloadP.then(() => {
  + });
  + await Promise.all(scriptLoadP);
  if (component) {
  // Wrap the core component in a runtime
  @@ -132,7 +138,6 @@ async function getPkg(packageJson: IPackage, scriptId: string, component = false
  },
  packageUrl: "NA"
  };
  - });
  }
  const bearerSecret = "VBQyoGpEYrTn3XQPtXW3K8fFDd";
  @@ -146,9 +151,8 @@ export async function start(
  const url = window.location.href;
  // Create Package
  - const scriptId = "pragueDevServerScriptToLoad";
  - const scriptIds = [scriptId];
  - const pkg = await getPkg(packageJson, scriptId, !!options.component);
  + const scriptIds: string[] = [];
  + const pkg = await getPkg(packageJson, scriptIds, !!options.component);
  // Construct a request
  const req: IRequest = {
  