Fix a bug with b.require if {expose: true}