Improved support for modules not exposing anything.