From a990e5716a694da7f2b8cf1562a91e853a5826ff Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Mon, 13 Nov 2023 14:18:04 -0500 Subject: [PATCH] fix tsconfig.json (#9427) * fix tsconfig.json * prettier * another apparently-necessary fix --------- Co-authored-by: Rich Harris --- packages/svelte/src/transition/index.js | 6 +++--- packages/svelte/tsconfig.json | 2 +- .../src/routes/docs/content/01-api/03-functions.md | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/svelte/src/transition/index.js b/packages/svelte/src/transition/index.js index d66a421c07..3b28b16f9d 100644 --- a/packages/svelte/src/transition/index.js +++ b/packages/svelte/src/transition/index.js @@ -83,14 +83,14 @@ export function fly( const target_opacity = +style.opacity; const transform = style.transform === 'none' ? '' : style.transform; const od = target_opacity * (1 - opacity); - const [xValue, xUnit] = split_css_unit(x); - const [yValue, yUnit] = split_css_unit(y); + const [x_value, x_unit] = split_css_unit(x); + const [y_value, y_unit] = split_css_unit(y); return { delay, duration, easing, css: (t, u) => ` - transform: ${transform} translate(${(1 - t) * xValue}${xUnit}, ${(1 - t) * yValue}${yUnit}); + transform: ${transform} translate(${(1 - t) * x_value}${x_unit}, ${(1 - t) * y_value}${y_unit}); opacity: ${target_opacity - od * u}` }; } diff --git a/packages/svelte/tsconfig.json b/packages/svelte/tsconfig.json index 06104c2525..2f90cc693e 100644 --- a/packages/svelte/tsconfig.json +++ b/packages/svelte/tsconfig.json @@ -19,7 +19,7 @@ "svelte/action": ["./src/action/public.d.ts"], "svelte/compiler": ["./src/compiler/public.d.ts"], "svelte/internal": ["./src/internal/index.js"], - "svelte/legacy": ["./src/legacy/public.d.ts"], + "svelte/legacy": ["./src/legacy/legacy-client.js"], "svelte/server": ["./src/server/index.js"], "svelte/store": ["./src/store/public.d.ts"], "#compiler": ["./src/compiler/types/index.d.ts"] diff --git a/sites/svelte-5-preview/src/routes/docs/content/01-api/03-functions.md b/sites/svelte-5-preview/src/routes/docs/content/01-api/03-functions.md index bb3bc3fe7e..b529d05cfb 100644 --- a/sites/svelte-5-preview/src/routes/docs/content/01-api/03-functions.md +++ b/sites/svelte-5-preview/src/routes/docs/content/01-api/03-functions.md @@ -22,4 +22,3 @@ To prevent something from being treated as an `$effect`/`$derived` dependency, u }); ``` -