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

Does not work with Webpack Multiple Target Configuration #229

Closed
kube opened this issue Mar 14, 2019 · 3 comments
Closed

Does not work with Webpack Multiple Target Configuration #229

kube opened this issue Mar 14, 2019 · 3 comments
Labels

Comments

@kube
Copy link

kube commented Mar 14, 2019

When using Webpack Multiple Target Configuration, e.g.

module.exports = [
  configLibrary,
  configWebApp,
  configNodeCli,
  configDenoCli,
]

Here if all of these Webpack configurations use fork-ts-checker-webpack-plugin, only the first one will be compiled.

@johnnyreilly
Copy link
Member

Interesting. It's not been a use case of mine so I haven't considered it. Feel free to experiment and submit PRs 😀

@piotr-oles piotr-oles added the bug label May 19, 2019
@IIIristraM
Copy link

IIIristraM commented Jan 30, 2020

Looks like right now workaround is

const tsFork = new ForkTsCheckerWebpackPlugin({...});

for (const comp of compiler.compilers) {
    tsFork.apply(comp);
}

It works, but has at least one negative effect like multiple same messages on start, nevertheless in my case with fifteen configs it's more acceptable than fifteen services.

Important note is that in my case all configs build parts of one app, so I can just run checker with tsconfig that includes all corresponding folders, add apply is a way to trigger check if any parts changed.

@piotr-oles piotr-oles mentioned this issue Apr 18, 2020
26 tasks
@piotr-oles
Copy link
Collaborator

@kube , @IIIristraM
Please try fork-ts-checker-webpack-plugin@alpha - I've published a new version which should resolve this issue 🚀
I will close this issue to clean-up the backlog. If this release didn't solve the issue, we can re-open this :)

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

No branches or pull requests

4 participants