---
title: "ts-loader goes webpack 4... again!"
url: https://daily.dev/posts/ts-loader-goes-webpack-4-again--ixscxxh9g
source_url: https://johnnyreilly.com/ts-loader-goes-webpack-4-again
type: article
source: "John Reilly"
published: 2026-05-31T07:47:54.437Z
updated: 2026-05-31T09:17:58.990Z
tags: ["typescript", "webpack"]
reading_time: 5
upvotes: 1
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# ts-loader goes webpack 4... again!

**[John Reilly](https://daily.dev/sources/johnnyreilly)** · 5 min read · 1 upvotes · 0 comments

## Summary

ts-loader v9.6.0 now supports both webpack 4 and webpack 5, reversing the decision made in 2021 to drop webpack 4 support. The motivation is that webpack 4 still sees around 4 million downloads per week and ts-loader@8 nearly 1 million, making a separate maintenance branch increasingly burdensome. The changes required were relatively minor — handling API differences between webpack 4 and 5, adding loader-utils as an optional peer dependency, and extending the test suite to cover both versions. GitHub Copilot assisted in implementing the changes. The goal is to consolidate maintenance into a single branch, simplifying future TypeScript compatibility patches.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://johnnyreilly.com/ts-loader-goes-webpack-4-again>

## Similar posts on daily.dev

- [Migrating ts-loader to TypeScript 7.1 with AI](https://daily.dev/posts/migrating-ts-loader-to-typescript-7-1-with-ai-nylu3j8a3) · John Reilly · 39 upvotes · 6 comments

---

Tags: [#typescript](https://daily.dev/tags/typescript), [#webpack](https://daily.dev/tags/webpack)

[View this post on daily.dev](https://daily.dev/posts/ts-loader-goes-webpack-4-again--ixscxxh9g)
