-
-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for array of preprocessors #279
Comments
I think it's because you use an array of preprocessors, that is not supported yet. const preprocess = require("svelte-preprocess")
module.exports = {
preprocess: preprocess({
postcss: true,
typescript: { transpileOnly: true }
}),
} does it work then? |
That indeed fixes it, thanks 😅 maybe a note in the docs would be helpful? |
Absolutely |
Adding an array causes the extension to work improperly (sveltejs#279), so this note should save some confusion
Adding an array causes the extension to work improperly (#279), so this note should save some confusion
import type
What would be needed for this to be supported? Willing to help any way I can! Not having this feature makes it impossible to use MDSveX and sass together, for example |
I think @kaisermann wanted to take a shot at this, not sure what his status on that is though. |
@dummdidumm I've stopped what I was doing a while ago, but will probably get back to it tomorrow or this weekend! |
* (feat) Support for multiple preprocessors #279 Co-authored-by: Christian Kaisermann <[email protected]>
Describe the bug
import type
syntax causes a type error. This is needed for ESM-sensitive bundlers that need to differentiate types from values for erasure during compilationTo Reproduce
Steps to reproduce the behavior:
For example a code snippet that is treated in a way you don't expect.
Expected behavior
Type imports should be parsed without errors
Screenshots
If applicable, add screenshots to help explain your problem.
System (please complete the following information):
The text was updated successfully, but these errors were encountered: