Get more robust/user friendly with preprocessors
See original GitHub issueIs your feature request related to a problem? Please describe. Many people seem to have problems setting up preprocessors for the plugin - I guess partly because they install the extension and just expect it to work.
Describe the solution you’d like Maybe we can get more robust/user friendly by doing the following things:
- If we don’t detect a
svelte.config.js
, we just do a best guess by using https://github.com/kaisermann/svelte-preprocess - If we detect that inside javascript “unexpected token”-errors occur, we enhance the error message with something like “have typed
lang="typescript"
in script? have you setup preprocessors correctly? see <somelink> for more info”
Describe alternatives you’ve considered Make docs clearer.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (5 by maintainers)
Top Results From Across the Web
10 CSS Preprocessors Worth Considering - Envato
In this post we have have put together some of the best CSS preprocessors that are currently available, which do you use?
Read more >CSS Preprocessors – Powerful Tools for Smarter Styling of ...
Preprocessors can enhance the functionality of CSS with assets like variables, operators, interpolations, functions, mixins to name a few. All ...
Read more >Preprocessors - mdBook Documentation
A preprocessor is simply a bit of code which gets run immediately after the book is loaded and before it gets rendered, allowing...
Read more >Using Preprocessors in the DataMapper - OL® Learn
Preprocessors are an extremely powerful feature of the DataMapper. They allow you to make changes to the input data file before anything else...
Read more >SASS for CSS: Advance your frontend skills with ... - Educative.io
They are more stable than CSS. A preprocessor adds a certain level of stability and maturity through features like mixins, nesting, inheritance, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It would mean adding it as a dependency and using it as the fallback preprocessor.
I think just detecting if there are no preprocessors setup and telling them to add one with a helpful error message would be pretty helpful. It’d be a bit less magical and more explicit too, which I always think is nice