orlov-vo / parcel-transformer-svelte

Parcel 2 transformer for Svelte 3
https://www.npmjs.com/package/parcel-transformer-svelte
MIT License
40 stars 18 forks source link

SourceMap.fromRawSourceMap is not a function #6

Closed mathiasrw closed 4 years ago

mathiasrw commented 4 years ago

When doing parcel build src/index.html i get the following error:

parcel-transformer-svelte: SourceMap.fromRawSourceMap is not a function
TypeError: SourceMap.fromRawSourceMap is not a function
at Object.transform (/simple/node_modules/parcel-transformer-svelte/index.js:60:30) 
at async runTransformer (/simple/node_modules/@parcel/core/lib/Transformation.js:483:3)

Looking at the different other plugins for parcel2 is looks like the way SourceMap is used has changed since the current implementation:

w7it commented 4 years ago

Thanks for reporting! The error should go away in new 1.0.4 version