Skip to content

Commit

Permalink
fix nested dependencies in elm transform for multi module compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristophP committed May 9, 2022
1 parent 4f80133 commit 004a394
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/transformers/elm/src/ElmTransformer.js
Expand Up @@ -59,9 +59,10 @@ export default (new Transformer({
const dependencies = await Promise.all(
sources.map(elm.findAllDependencies),
);
for (const filePath of new Set(dependencies)) {
const uniqueDeps = new Set(dependencies.flat());
Array.from(uniqueDeps).forEach(filePath => {
asset.invalidateOnFileChange(filePath);
}
});

// Workaround for `chdir` not working in workers
// this can be removed after https://github.com/isaacs/node-graceful-fs/pull/200 was mergend and used in parcel
Expand Down

0 comments on commit 004a394

Please sign in to comment.