pixelmund / svemix

The Full-Stack addition to SvelteKit. Write your server code inside svelte files, handle sessions, forms and SEO easily.
https://svemix.com
MIT License
336 stars 16 forks source link

Svemix Can Not Be Used Together With Certain Preprocessors #51

Open Acmion opened 2 years ago

Acmion commented 2 years ago

Describe the bug

Svemix does not work with certain preprocessors. For example, enabling MDsveX so that Markdown can be used in component source files will stop Svemix from working.

I am not sure about what causes this. Maybe it is something that is specific to MDsveX and Svemix or maybe it is a more general issue.

The order in which preprocessors and plugins are executed could have some effect on the matter.

Your Example Website or App

https://github.com/Acmion/svemix-mdsvex-bug

Steps to Reproduce the Bug or Issue

See the readme of the linked repo.

Expected behavior

It should be possible to use preprocessors (e.g. MDsveX) and Svemix together.

Screenshots or Videos

No response

Platform

Additional context

Maybe Svemix can be implemented as a preprocessor rather than a plugin to solve the issue? This should at least let us specify the order, however, I am not sure whether this would fix the issue or not.