Reintroduce resourceGenerators.

Apparently it is sometimes needed for recompile-on-refresh.