-
-
Notifications
You must be signed in to change notification settings - Fork 201
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
Remove dependency on svelte-preprocess
#2391
Comments
svelte-preprocess is used as a fallback when there isn't a preprocess config or config can't be loaded so I think this would be a breaking change. One example is that the preprocess config is directly passed into the svelte plugin in the vite.config.js/rollup.config.js instead of in the |
Yeah, potentially. Might not be bad to do with the next major whenever that is
I've never seen anyone do that for TypeScript 😆 |
I'm wondering why we're having this dependency at all and are not bundling with the other packages. Was it because of some transitive dependency not playing ball? Can't remember. |
But do we need to bundle it or can we just remove it? |
We can't really remove it because it's a dependency of |
I just meant remove it from |
It might be because of the dynamic import in
|
sveltejs/svelte-preprocess#643 showed that the removal of the import preprocessor has affected more people than I imagined. I'm wondering what that means for our fallback preprocessor with regards to intellisense etc., and whether or not it should become a optional peer dep in svelte-check instead of a dependency. |
Describe the bug
This dependency is unnecessary. If the user doesn't have it installed in their project, then they aren't using it and there's no reason for
svelte-check
to add it. This is one of multiple issues contributing to sveltejs/kit#12258. But even without that issue, the dependency is just adding extra weight we don't need in most projects. Even most TypeScript-enabled SvelteKit projects don't use it as they generally use vite preprocess from v-p-sReproduction
language-tools/packages/svelte-check/package.json
Line 32 in c186152
Expected behaviour
Try to dynamically import it instead
System Info
N/A
Which package is the issue about?
svelte-check
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered: