TypeStrong / TypeStrong/ts-loader

rspack compatibility

Open
#1,694 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
3.5k
Forks
439
Avg merge
17h 17m
Merged PRs (30d)
2

Description

Hello,

I'm using this loader with both Webpack and Rspack, and it is working nicely.

However, when using it with Rspack, it requires installing Webpack, which I would like to avoid.

Would you be open to a PR that allows the use of Rspack or Webpack independently?

My idea is that when using a hook, when we get an instance of compiler, there is a compiler.webpack property (also in Rspack) with a full webpack export inside, which can avoid importing the webpack package itself.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the loader's compiler hooks and webpack dependency usage; the issue does not name specific files or tests. The work is done when Rspack and Webpack can be used independently without requiring the webpack package, while existing Webpack use remains compatible.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, webpack
Domain
build-system, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.