guybedford / chomp

'JS Make' - parallel task runner for the frontend ecosystem with a JS extension system.
https://chompbuild.com
Apache License 2.0
138 stars 7 forks source link

Deps analysis #58

Closed guybedford closed 2 years ago

guybedford commented 2 years ago

Currently deps must always be direct deps. It could be useful to define a form of dependency that means depend on this file and everything it statically imports via eg JS analysis / CSS import analysis etc.

We have es-module-lexer in Rust to use for this.

One way to do this might be to define deps = ["^lib/app.js"] where eg the ^ leading symbol implies deps analysis to form the deps expansion into a flat deps = ["lib/app.js", "lib/dep.js"] underneath.

guybedford commented 2 years ago

Wildcard deps have now been shipped, so I'm going to close this for now - it's easier and simpler to use wildcards for most of these scenarios.