1. 25 Oct, 2021 6 commits
  2. 22 Oct, 2021 2 commits
  3. 20 Oct, 2021 1 commit
  4. 19 Oct, 2021 23 commits
  5. 18 Oct, 2021 5 commits
  6. 15 Oct, 2021 3 commits
    • Robert Knight's avatar
      Convert test bundle to be an ES module · 53da4038
      Robert Knight authored
      This should make it easier to speed up test runs in future by
      pre-building npm dependencies into a separate bundle which the main test
      bundle can import from.
      53da4038
    • Robert Knight's avatar
      Limit CommonJS processing to npm dependencies · f72de5b5
      Robert Knight authored
      The CommonJS plugin is the second most expensive transform after Babel.
      Since all of our own code uses ES modules, limit it to npm dependencies
      to speed up the build.
      
      In tests the Babel transform has also been moved last so that additional
      code it generates is not unnecessarily processed by subsequent plugins.
      
      Combined these changes speed up a build of the full test bundle by ~4s.
      f72de5b5
    • Robert Knight's avatar
      Use an Error-like object rather than an actual Error in a test · f16678ec
      Robert Knight authored
      This fixes a slow test on this branch, which appears to be caused by an
      interaction between using `postMessage` to serialize native Error
      objects and the `source-map-support` Karma plugin that we use.
      
      Sending native Errors via `PortRPC` currently doesn't work in all
      browsers so I expect we'll want to implement our own serialization of
      errors in `PortRPC` to work around that. That can also work around the
      `source-map-support`/`postMessage` issue in Chrome in future.
      
      To move the Browserify => Rollup conversion forwards, this commit just
      changes the test to use an Error-like rather than actual Error object.
      f16678ec