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

Config not loading #30

Open marianspoiala opened 2 years ago

marianspoiala commented 2 years ago

Hi,

I've been trying to use this transformer with the latest version of Parcel v2.0.1, but the svelte configuration is not getting picked up.

This is because the API is different for the loadConfig function, it should return the contents, but in your implementation it doesn't. See docs: https://parceljs.org/plugin-system/authoring-plugins#loading-configuration

Out of laziness to fix it myself, I've been using the code in this PR: https://github.com/orlov-vo/parcel-transformer-svelte/pull/24 and it works fine.

gcoakes commented 2 years ago

Just a heads up, I don't intend to continue with that PR. I moved to instead get a transformer merged to parcel itself so svelte can be included by default. Also, my branch for that PR isn't particularly stable. I just made changes to it that might break your setup.

marcelkorpel commented 2 years ago

instead get a transformer merged to parcel itself so svelte can be included by default.

Any update on that? Is there a discussion upstream?

dave11mj commented 2 years ago

instead get a transformer merged to parcel itself so svelte can be included by default.

Any update on that? Is there a discussion upstream?

Any updates on an official @parcel svelte plugin ? As it stands it seems like Typescript is not supported on it, and the only alternative is forking less known and riskier forks of this transformer like https://www.npmjs.com/package/parcel-transformer-svelte3-plus