-
-
Notifications
You must be signed in to change notification settings - Fork 6
import type statement causes optimizeImports error #80
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
Labels
bug
Something isn't working
Comments
Could you share your Vite config? Note that if using TypeScript, export default {
plugins: [
svelte({
preprocess: [
// Preprocessors are run in sequence.
// If using TypeScript, the code must be transpiled first.
vitePreprocess(),
optimizeImports(),
],
}),
],
}; |
Thanks – I'll take a look. |
aleksan27
added a commit
to aleksan27/carbon-preprocess-svelte
that referenced
this issue
Feb 27, 2025
Proposing the following fix: PR #81 |
Fixed in v0.11.11 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When "import type" statement is used optimizeImport preprocessor fails with "Unexpected token" error.
For example in a svelte page:
The text was updated successfully, but these errors were encountered: