TypeStrong / TypeStrong/ts-loader

pass direct reference to ts-loader to webpack.config module.rules.loader

Open
#1,660 0 comments 0 reactions 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

Expected Behaviour

is there a way to pass in a direct reference to some sort of ts-loader into webpack.config so that i can have a central webpack config reusable in multiple applications without having to include ts-loader as a seperate dependancy for each app? kinda like how mini-css-extract-plugin has MiniCssExtractPlugin.loader to pass in... thanks!

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 examining how webpack.config exposes module.rules.loader and how MiniCssExtractPlugin.loader provides a direct reference. Trace how ts-loader is packaged and resolved, then define and test the expected reusable-configuration behavior. Done means applications can use the shared configuration without separately declaring ts-loader as a dependency.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, webpack
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.