TypeStrong / ts-loader

TypeScript loader for webpack
https://johnnyreilly.com/ts-loader-goes-webpack-5
MIT License
3.46k stars 431 forks source link

Memory consuption problem #1374

Open mbrn opened 3 years ago

mbrn commented 3 years ago

We are using ts-loader with a webpack configuration on our projects. On last days we monitor that our applications consume very high level memory.

Operation system: Windows 10

Expected Behaviour

Memory usage must be normal level.

Actual Behaviour

Every webpack application uses more than 1-1.5 GB memory

Steps to Reproduce the Problem

Use ts-loader with webpack with a few helper plugin like TsconfigPathsPlugin, Dotenv, DeadCodePlugin, HtmlWebpackPlugin

Location of a Minimal Repository that Demonstrates the Issue.

jakeleventhal commented 3 years ago

This started for me out of nowhere. reverting to older commits from about a week ago yields the same results. switching to babel as a temporary measure seems to ease this by about 50% but memory consumption is still very high. This was not an issue a few days ago. maybe this is an issue with a peer dep

johnnyreilly commented 3 years ago

Nothing has changed in ts-loader - so it seems likely the problem lies elsewhere

jakeleventhal commented 3 years ago

my suggestion is that is a dep of ts-loader. maybe ts-loader should pin down

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

jakeleventhal commented 2 years ago

not stale