We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
<script module>
in a fresh SvelteKit project with Svelte 5 selected:
<!-- src/lib/Component.svelte --> <script lang="ts" module> export function myFn(param: string) { return param + 'pam' + 'pam'; } </script>
<!-- src/routes/+page.svelte --> <script lang="ts"> import { myFn } from '$lib/Component.svelte'; </script> <h1>{myFn('whee')}</h1>
for it to work
Svelte for VS Code extension
No response
The text was updated successfully, but these errors were encountered:
context="module"
module
fix: support module script attribute
fe60da4
fixes #2472
0655c67
Successfully merging a pull request may close this issue.
Describe the bug
Reproduction
in a fresh SvelteKit project with Svelte 5 selected:
Expected behaviour
for it to work
System Info
Which package is the issue about?
Svelte for VS Code extension
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered: