Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/red-hands-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"stack54": patch
---

Remove components barrel export to avoid breaking import conditions resolution
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { Head } from "stack54/components";
import { Head } from "stack54/components/Head";
</script>

<!DOCTYPE html>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { Head } from "stack54/components";
import { Head } from "stack54/components/Head";
</script>

<!DOCTYPE html>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { Head } from "stack54/components";
import { Head } from "stack54/components/Head";
import { delay } from "./utils";
</script>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import Await from "stack54/components/Await";
import { Head } from "stack54/components";
import { Head } from "stack54/components/Head";
import { delay } from "./utils";
</script>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { Head } from "stack54/components";
import { Head } from "stack54/components/Head";
</script>

<!DOCTYPE html>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { Head } from "stack54/components";
import { Head } from "stack54/components/Head";
</script>

<!DOCTYPE html>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { Head } from "stack54/components";
import { Head } from "stack54/components/Head";
</script>

<!DOCTYPE html>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { Head } from "stack54/components";
import { Head } from "stack54/components/Head";
</script>

<!DOCTYPE html>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { Head } from "stack54/components";
import { Head } from "stack54/components/Head";
</script>

<!DOCTYPE html>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { Head } from "stack54/components";
import { Head } from "stack54/components/Head";
import { delay } from "./utils";
</script>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { Head } from "stack54/components";
import { Head } from "stack54/components/Head";
import { delay } from "./utils";
const promise = delay(1000);
</script>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { Head } from "stack54/components";
import { Head } from "stack54/components/Head";
import { delay } from "./utils";
</script>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { Head } from "stack54/components";
import { Head } from "stack54/components/Head";
import { delay } from "./utils";
</script>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import Await from "stack54/components/Await";
import { Head } from "stack54/components";
import { Head } from "stack54/components/Head";
import { delay } from "./utils";
</script>

Expand Down
1 change: 1 addition & 0 deletions packages/core/components/ClientOnly.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default as ClientOnly } from "./ClientOnly.svelte";
4 changes: 0 additions & 4 deletions packages/core/components/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"./config": "./dist/exports/config.js",
"./components/Head": "./components/Head.ts",
"./components/LiveReload": "./components/LiveReload.ts",
"./components": "./components/index.ts",
"./components/ClientOnly": "./components/ClientOnly.ts",
"./components/*": "./components/*.svelte",
"./internals": "./dist/exports/internals.js",
"./render": "./dist/runtime/render/index.js",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script island="idle">
import { ClientOnly } from "stack54/components";
import { ClientOnly } from "stack54/components/ClientOnly";
</script>

<ClientOnly>
<p data-testid="client-only">Client only</p>
<p data-testid="client-only">Client only</p>
</ClientOnly>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { Head } from "stack54/components";
import { Head } from "stack54/components/Head";
</script>

<!DOCTYPE html>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { Head } from "stack54/components";
import { Head } from "stack54/components/Head";
</script>

<svelte:head>
Expand Down
2 changes: 1 addition & 1 deletion packages/core/test/apps/basic/src/views/leaf/page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { Head } from "stack54/components";
import { Head } from "stack54/components/Head";
import Counter from "./counter.svelte";
</script>

Expand Down
3 changes: 2 additions & 1 deletion templates/express/src/views/components/document.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts">
import { Head, LiveReload } from "stack54/components";
import { Head } from "stack54/components/Head";
import { LiveReload } from "stack54/components/LiveReload";
</script>

<!DOCTYPE html>
Expand Down
3 changes: 2 additions & 1 deletion templates/hono/src/views/components/document.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts">
import { Head, LiveReload } from "stack54/components";
import { Head } from "stack54/components/Head";
import { LiveReload } from "stack54/components/LiveReload";
</script>

<!DOCTYPE html>
Expand Down
3 changes: 2 additions & 1 deletion templates/htmx/src/views/components/document.entry.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts">
import { Head, LiveReload } from "stack54/components";
import { Head } from "stack54/components/Head";
import { LiveReload } from "stack54/components/LiveReload";
</script>

<!DOCTYPE html>
Expand Down
2 changes: 1 addition & 1 deletion templates/htmx/src/views/contact.page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { Head } from "stack54/components";
import { Head } from "stack54/components/Head";
import type { User } from "../types/user";

export let user: User;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,33 +1,30 @@
<script lang="ts">
import { Head, LiveReload } from "stack54/components";
import { Head } from "stack54/components/Head";
import { LiveReload } from "stack54/components/LiveReload";
</script>

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<link rel="preconnect" href="https://fonts.googleapis.com" />
<link
rel="preconnect"
href="https://fonts.gstatic.com"
crossorigin=""
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="" />

<link
href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap"
rel="stylesheet"
/>

<link rel="stylesheet" href="../styles/tailwind.css" />
<link rel="stylesheet" href="../styles/tailwind.css" />

<Head />
<LiveReload />
<Head />
<LiveReload />

<slot name="head" />
</head>
<body>
<slot />
</body>
<slot name="head" />
</head>
<body>
<slot />
</body>
</html>
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts">
import { Head, LiveReload } from "stack54/components";
import { Head } from "stack54/components/Head";
import { LiveReload } from "stack54/components/LiveReload";
</script>

<!DOCTYPE html>
Expand Down
Loading