Revert "Remove restiction on supporting require list expansion and named modules when optimziation level is none"

This reverts commit f18c811f0013bbb38650262c7af0769ac79d4794.