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

How to use Typescript? #31

Open cupcakearmy opened 2 years ago

cupcakearmy commented 2 years ago

How can typescript be used? I'm getting syntax errors because parcel tries to parse typescript without being transformed.

// config.svelte.js
const preprocess = require('svelte-preprocess')

module.exports = {
  preprocess: preprocess(),
}
gcoakes commented 2 years ago

I think there were changes to the transformer plugin API that is probably causing issues. #30