Skip to content

Commit c8ec12e

Browse files
authored
🚨 Force dependency packages to use Svelte 5 (#787)
* ⬆️ Force Svelte 5 usage in svelte-hmr, @markuplint, and prettier-plugin-svelte * 🔧 Update .prettierignore and Button component styles * 📝 Add caution note about Svelte 5 compatibility issues in README.md
1 parent b98bc5b commit c8ec12e

File tree

4 files changed

+16
-35
lines changed

4 files changed

+16
-35
lines changed

.prettierignore

-3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,3 @@ pnpm-workspace.yaml
1212
/apps/mockup/public/styles.css
1313
/apps/web/.svelte-kit
1414
/apps/web/src/lib/$generated
15-
16-
# prettier-plugin-svelte (waiting for Svelte 5 support)
17-
*.svelte

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
Monorepo template for creating a web application.
44

5+
> [!Caution]
6+
> Currently, `svelte-hmr`, `@markuplint`, and `prettier-plugin-svelte` do not support Svelte 5.
7+
> We have overridden `pnpm-lock.yaml` to forcibly upgrade to Svelte 5, which may cause issues during package updates.
8+
> When updating dependencies, please refer to [#6a5906](https://github.com/usagizmo/webapp-template/pull/787/commits/6a5906b5866623b223867c4dd5de98755821cd49) to correct `pnpm-lock.yaml`.
9+
510
## What's inside?
611

712
### Uses

apps/web/src/lib/components/Button.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
: 'border-zinc-300 bg-slate-50 hover:border-zinc-400 hover:bg-slate-100',
3232
);
3333
const classAttrs = $derived(
34-
`font-ui inline-flex items-center justify-center space-x-1 rounded-md border px-5 py-2 text-sm duration-200 disabled:pointer-events-none disabled:opacity-40 ${kindClass}`,
34+
`font-ui inline-flex items-center justify-center space-x-1 rounded-md border py-2 px-5 text-sm duration-200 disabled:pointer-events-none disabled:opacity-40 ${kindClass}`,
3535
);
3636
const blankAttrs = $derived(
3737
href && blank

pnpm-lock.yaml

+10-31
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)