• 
      

    Allow the use of typescript (.ts) files.

    Review Request #12727 — Created Nov. 17, 2022 and submitted

    Information

    Djblets
    release-4.x

    Reviewers

    This change adds the babel preset for typescript and a babel compiler
    that matches it. With this, .ts files can be added to JavaScript
    bundles and will work correctly.

    I've stuck a tsconfig.json file in the root. This isn't critical because
    we don't use tsc to compile .ts to .js (that job is handled by babel),
    but this allows us to use things like tsserver for the dev environment
    without getting errors about non-ES3 constructs.

    Used some .ts files in the Review Board codebase.

    Summary ID
    Allow the use of typescript (.ts) files.
    This change adds the babel preset for typescript and a babel compiler that matches it. With this, `.ts` files can be added to JavaScript bundles and will work correctly. I've stuck a tsconfig.json file in the root. This isn't critical because we don't use tsc to compile .ts to .js (that job is handled by babel), but this allows us to use things like tsserver for the dev environment without getting errors about non-ES3 constructs. Testing Done: Used some `.ts` files in the Review Board codebase.
    4f55e268384210ee40a4d38d33359b423f53577d
    Description From Last Updated

    Can you add a Version Added here and to the class?

    chipx86chipx86
    chipx86
    1. 
        
    2. Show all issues

      Can you add a Version Added here and to the class?

    3. 
        
    david
    maubin
    1. Ship It!
    2. 
        
    chipx86
    1. Ship It!
    2. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-4.x (1dcacc8)