sveltejs / svelte-preprocess

A ✨ magical ✨ Svelte preprocessor with sensible defaults and support for: PostCSS, SCSS, Less, Stylus, Coffeescript, TypeScript, Pug and much more.
MIT License
1.73k stars 147 forks source link

Add haml as preprocessor #554

Open chmich opened 1 year ago

chmich commented 1 year ago

Is your feature request related to a problem? Please describe. There is a nice and frequently used haml processor: hamljs The reason for preferring it over pug is: On Rails Backend, like many, i work with haml. Then backend and frontend could have the same language.

I tried to implement it, but: Internal server error: Error while preprocessing /Users/dev/temp/vite-app/app/frontend/javascript/components/hello.svelte - Cannot find module './transformers/hamljs' (same with 'haml' instead of 'hamljs')

Describe the solution you'd like Add it as option for preprocessing.

Describe alternatives you've considered :)

How important is this feature to you? not serious, but would be nice.

Additional context thats all.

Thanks, Christian