Skip to content

leverage native NodeJS TypeScript support instead of custom loader #195

@thescientist13

Description

@thescientist13

Current State

Now that NodeJS provides (experimental) TypeScript support, we can likely move away from our custom TS loader approach.

### Prerequisites

We should just be able to establish some baseline pre-requisites like

  1. You will need to use Node >= 22.6.0 and set the --experimental-strip-types flag
  2. (Optional) Install TypeScript into your project, e.g. npm i typescript --save-dev
  3. (Optional) Create a tsconfig.json file at the root of your project with these minimum configuration settings

If you're feeling adventurous, you can use >=23.x and omit the --experimental-strip-types flag. Keep an eye on this PR for when unflagged type-stripping support may come to Node LTS 22.x. 👀

Desired State

The desired state would be to not have to use the custom loader anymore. The docs are out of date as well as the API has changed anyway, as we can see per #187 .

Additional Context

Here is how it was done for Greenwood - ProjectEvergreen/greenwood#1250

Metadata

Metadata

Labels

0.17.0breakingdocumentationImprovements or additions to the website and / or documentationfeatureNew feature or requesttypes

Projects

Status

✅ Done

Relationships

None yet

Development

No branches or pull requests

Issue actions