This pull request fixes the bug of parseDependency when dealing with one import statement which has multiline like
import {
a
, b
} from './c'
and I also find the pattern ^\s*import\s+['"](.+)['"]+\s+as of the parseDependencyReg maybe useless, cause the spec doesn't have syntax like import 'a' as b, and I delete this.
This pull request fixes the bug of
parseDependency
when dealing with oneimport
statement which has multiline likeand I also find the pattern
^\s*import\s+['"](.+)['"]+\s+as
of theparseDependencyReg
maybe useless, cause the spec doesn't have syntax likeimport 'a' as b
, and I delete this.