title: Can Aurelia be loaded as a Webpack external?
body: <p>We would like to load Aurelia as a Webpack external to speed up build times of our code when debugging and help keep our Aurelia packages consistent across multiple projects. I attempted to require all the Aurelia packages and assign them to a global:</p>
  
  <pre><code>import * as framework from "aurelia-framework";
  import * as history from "aurelia-history";
  import * as historyBrowser from "aurelia-history-browser";
  ...
  
  window["cdnAurelia"] = {
      framework: framework,
      history: history,
      historyBrowser: historyBrowser,
      ...
  };
  </code></pre>
  
  <p>Then reference them as an external when building our Aurelia application:</p>
  
  <pre><code>var webpackConfig = {
      externals: {
          "aurelia-framework": "cdnAurelia.framework",
          "aurelia-history": "cdnAurelia.history",
          "aurelia-history-browser": "cdnAurelia.historyBrowser",
          ...
      },
      entry: {
          main: [
              "./src/main.ts"
          ]
      },
      ...
  };
  </code></pre>
  
  <p>Which results in an error stating "Uncaught (in promise) Error: Cannot find module "aurelia-loader-context"(…)" in aurelia-loader-webpack at:</p>
  
  <pre><code>var result = require('aurelia-loader-context/' + path);
  </code></pre>
  
  <p>Has anyone had success trying to load Aurelia as a Webpack external? Any suggestions on what to try next?</p>