Skip to content

Commit 41d8f5f

Browse files
committed
use esrap preview
1 parent f2efe63 commit 41d8f5f

File tree

6 files changed

+18
-6
lines changed

6 files changed

+18
-6
lines changed

packages/svelte/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
"clsx": "^2.1.1",
177177
"devalue": "^5.5.0",
178178
"esm-env": "^1.2.1",
179-
"esrap": "^2.2.1",
179+
"esrap": "https://pkg.pr.new/sveltejs/esrap@101",
180180
"is-reference": "^3.0.3",
181181
"locate-character": "^3.0.0",
182182
"magic-string": "^0.30.11",

packages/svelte/tests/print/samples/formatting/output.svelte

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,41 @@
44
</script>
55

66
<h1>{m.hello_world({ name: 'SvelteKit User' })}</h1>
7+
78
<div>
89
<button onclick={() => setLocale('en')}>en</button>
910
<button onclick={() => setLocale('es')}>es</button>
1011
</div>
12+
1113
<p>
1214
If you use VSCode, install the
15+
1316
<a
1417
href="https://marketplace.visualstudio.com/items?itemName=inlang.vs-code-extension"
1518
target="_blank"
1619
>Sherlock i18n extension</a>
20+
1721
for a better i18n experience.
1822
</p>
23+
1924
<Component>
2025
<div>
2126
<button>Hello, this is a test</button>
2227
<button>Hello, this is a test</button>
2328
</div>
2429
</Component>
30+
2531
<Component>
2632
<button>Hello, this is a test</button>
2733
<button>Hello, this is a test</button>
2834
</Component>
35+
2936
<button
3037
class="foo bar"
3138
aria-label="click"
3239
onclick={() => console.log("clicked")}
3340
>Click me!</button>
41+
3442
<button
3543
class="foo bar"
3644
aria-label="click"

packages/svelte/tests/print/samples/style-directive/output.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<div style:color="red">...</div>
2+
23
<div
34
style:color
45
style:width="12rem"

packages/svelte/tests/print/samples/svelte-fragment/output.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
<Widget>
66
<h1 slot="header">Hello</h1>
7+
78
<svelte:fragment slot="footer">
89
<p>All rights reserved.</p>
910
<p>Copyright (c) 2019 Svelte Industries</p>

packages/svelte/tests/print/samples/svelte-head/output.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<svelte:head>
22
<title>Hello world!</title>
3+
34
<meta
45
name="description"
56
content="This is where the description goes for SEO"

pnpm-lock.yaml

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)