ysmood / nokit

A light weight set of handy tools for real world program.
51 stars 6 forks source link

fix: parseDependency bug of import #13

Closed 2hu12 closed 7 years ago

2hu12 commented 7 years ago

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.

ysmood commented 7 years ago

Thanks, I will publish a new version as soon as possible.

ysmood commented 7 years ago

I published nokit@0.23.12

2hu12 commented 7 years ago

Awesome!