This is the same issue as #241.
The line here features#L22 should be modified to check if window exist before using it or be wrapped in a function like at features#L24 since function for has tests won't be evaluated at build time.
Another solution would be to wrap all the browser only tests in a if statement like it is done in deliteful/features.