Skip to content

--watch on projects with shared dependencies triggers only first square process #55

@janmartenjongerius

Description

@janmartenjongerius

When we combine a make entry and let square run multiple processes on different bundles, all but the first bundle of the bundles that share dependencies won't get triggered. E.g.

Application a.js has ../common/dep.js in a/bundle.json
Application b.js has ../common/dep.js in b/bundle.json

In the Makefile we set up:

ab.js: a.js b.js

a.js:
  square --bundle a --plugin crush --extension js --watch

b.js:
  square --bundle b --plugin crush --extension js --watch

Then we run: $ make -j2 ab.js

We see two square processes spawn, compile and watch.

Now, we change something in dep.js and save that file. What should happen is that we see two square processes get triggered, but instead we only see the square process for a.js.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions