Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

[WIP] Upgrade to babel@7 and support TypeScript #3292

Closed
wants to merge 4 commits into from

Commits on Aug 8, 2019

  1. Upgrade to babel@7 and support TypeScript

    For element-hq/element-web#10524
    
    Upgrading to babel 7 gets a lot of the compilation stuff for free. The major changes we care about are:
    * The packages are now namespaced (hence all the package changes)
    * We use the `env` preset instead of the long-since deprecated es20XX packages. 
    * Added `--verbose` to maintain log output from the previous version.
    
    This also meant fixing `ScalarAuthClient`: we can no longer mix `module.exports` and `import` in the same file. 
    
    The SdkConfig was converted to TypeScript to prove this works (it does).
    turt2live committed Aug 8, 2019
    Configuration menu
    Copy the full SHA
    459626c View commit details
    Browse the repository at this point in the history
  2. Fix and update karma tests

    The update isn't super required, but it does help fix some of the module problems. We have to export ourselves as commonjs to make the tests happy, and empirically riot-web's webpack is also happy with this. 
    
    The changes to the karma preprocessors is to ensure the app bootstraps correctly.
    turt2live committed Aug 8, 2019
    Configuration menu
    Copy the full SHA
    483844f View commit details
    Browse the repository at this point in the history
  3. Actually use bluebird promises

    This makes the app happy.
    turt2live committed Aug 8, 2019
    Configuration menu
    Copy the full SHA
    942df49 View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2019

  1. Configuration menu
    Copy the full SHA
    8663fe2 View commit details
    Browse the repository at this point in the history