TypeStrong / TypeStrong/ts-loader
Add support for using keyword (TypeScript 5.2)
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3.5k
- Forks
- 439
- Avg merge
- 17h 17m
- Merged PRs (30d)
- 2
Description
TypeScript has introduced a new keyword using in 5.2 release. Seems like ts-loader does not support it. I get the following error:
You may need an additional loader to handle the result of these loaders.
> await using tempFile = await createTempFile(content.value);
Could you please add support for this new keyword?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported error with the TypeScript 5.2 using example in the issue and inspect ts-loader's handling of TypeScript output in webpack. Compare the behavior with the TypeScript 5.2 announcement; done means the example loads without the additional-loader error and relevant coverage is added.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, webpack
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100