check if a source string is an es6 module