August Lilleaas writes:
> Perhaps the "buster" and "buster-node" packages should start using
> explicit dependencies instead of fuzzy semver matches, so updates work
> better?
That is not the root cause here. The problem was that I simply forgot
that the buster-module also depends on samsam, not only formatio.
This is the root cause:
formatio depends on samsam. However, in order to load samsam into the
browser when you type `buster-test`, the buster-module also depends on
samsam, so it can do `require.resolve("samsam")` (which wouldn't work
with node_modules/formatio/node_modules/samsam).
I want to fix this, and my current idea is to make all the buster
modules expose their own dependencies to help with loading them in the
browser. Example:
require("formatio").files; //=>
// ["node_modules/formatio/node_modules/samsam/lib/samsam.js",
// "node_modules/formatio/lib/formatio.js"]
This way we could remove the duplicated dependencies in the
buster-module, and this problem would go away.
Christian