ts-loader icon indicating copy to clipboard operation
ts-loader copied to clipboard

ts-loader with thread-loader doesn't work in transpileonly mode

Open janlent1 opened this issue 1 year ago • 1 comments

Expected Behaviour

When using the thread-loader, the ts-loader checks for hasForkTsCheckerWebpackPlugin to enable transpile only mode, but since the settings are stringified and parsed again, the constructor name is Object and not ForkTsCheckerWebpackPlugin anymore. There needs to be another way of using transpile only, eg via happypackmode or similar.

Actual Behaviour

The hasForkTsCheckerWebpackPlugin always returns false disabling the transpileonly mode.

Steps to Reproduce the Problem

use thread-loader with forktscheckerwebpackplugin and output the value of hasForkTsCheckerWebpackPlugin

Location of a Minimal Repository that Demonstrates the Issue.

janlent1 avatar Jun 28 '23 15:06 janlent1

But since the logic then checks for happypackmode, it works if that is enabled. But the logic is just faulty.

janlent1 avatar Jun 28 '23 15:06 janlent1