nfroidure / svg-pathdata

Parse SVG PathDatas
MIT License
183 stars 18 forks source link

Wrong source map sources path #60

Closed OpportunityLiu closed 3 years ago

OpportunityLiu commented 3 years ago

Issue

I'm a gentledev i:

Expected behavior

Correct source map

Actual behavior

Duplicate src in source map sources, lead to Failed to parse source map from 'XX\node_modules\svg-pathdata\src\src\mathUtils.ts' file: Error: ENOENT: no such file or directory, open 'XX\node_modules\svg-pathdata\src\src\mathUtils.ts'

https://unpkg.com/browse/svg-pathdata@6.0.2/lib/SVGPathData.cjs.map image

Steps to reproduce the behavior

Debugging informations

pioug commented 3 years ago

Please check v6.0.3. Share an example if it's still not working because I am not really familiar with sourcemaps.