Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
janlent1 opened this issue Jun 28, 2023 · 1 comment
Open

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

janlent1 opened this issue Jun 28, 2023 · 1 comment

Comments

@janlent1
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant