Support imports option for umd
Reimplement default import based on esprima rewrite