-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b832423
commit 6c9e72e
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
packages/kit/test/apps/basics/src/routes/load/dynamic-import-styles/_/Thing.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<p id="thing">this text is red</p> | ||
|
||
<style> | ||
p { | ||
color: red; | ||
} | ||
</style> |
15 changes: 15 additions & 0 deletions
15
packages/kit/test/apps/basics/src/routes/load/dynamic-import-styles/index.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<script context="module"> | ||
export async function load() { | ||
return { | ||
props: { | ||
Thing: (await import('./_/Thing.svelte')).default | ||
} | ||
}; | ||
} | ||
</script> | ||
|
||
<script> | ||
export let Thing; | ||
</script> | ||
|
||
<Thing /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters