Give require
the same features as import
#1142
Merged
require
the same features as import
#1142