pull/16539/head
Rich Harris 1 month ago
parent 2cf74a0c3c
commit 970dcaa8b6

@ -0,0 +1,10 @@
import { test } from '../../test';
export default test({
error: {
code: 'snippet_invalid_export',
message:
'An exported snippet can only reference things declared in a `<script module>`, or other exportable snippets',
position: [26, 29]
}
});

@ -0,0 +1,11 @@
<script module>
export { foo }
</script>
<script>
let x = 42;
</script>
{#snippet foo()}
{x}
{/snippet}
Loading…
Cancel
Save