Support es6 module type. Fixes #6