You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
alphabet requires y, which requires x, and then requires z, which requires y, which has already been required. So, x first as needed by y and z, then y because it's listed first in alphabet, and then z because it's listed second and all its dependencies have been required already.
However, the chain doesn't look like that, it looks like this:
In snockets master, there are test fixtures
x.coffee
,y.js
, andz.coffee
.z
depends ony
andy
depends onx
.If I add
alphabet.coffee
which looks like this:I would expect the dependency chain to look like this:
alphabet
requiresy
, which requiresx
, and then requiresz
, which requiresy
, which has already been required. So,x
first as needed byy
andz
, theny
because it's listed first inalphabet
, and thenz
because it's listed second and all its dependencies have been required already.However, the chain doesn't look like that, it looks like this:
Note the order is
y
,x
,z
instead ofx
,y
,z
, which might break the code iny
since it relies on things inx
but comes before it.I pushed my failing test case to hornairs@4d330756f698d8211efc539cf4d2a8c36925dc4e.
The text was updated successfully, but these errors were encountered: