Skip to content

Commit

Permalink
import.meta.globEager to import.meta.glob
Browse files Browse the repository at this point in the history
Migrate from deprecated `import.meta.globEager` to latest API [`import.meta.glob`](https://vitejs.dev/guide/migration.html#import-meta-glob).
  • Loading branch information
EthanThatOneKid committed Nov 5, 2022
1 parent f9d4c08 commit 3580adb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/routes/(site)/1st/+page.svelte
@@ -1,6 +1,7 @@
<script context="module" lang="ts">
const confetti: Record<string, { default: string }> = import.meta.globEager(
'$lib/1st/confetti/*.ts'
const confetti: Record<string, { default: string }> = import.meta.glob(
'$lib/public/confetti/*.ts',
{ eager: true }
);
</script>

Expand Down

0 comments on commit 3580adb

Please sign in to comment.