Code clean
- Imports/exports always at top - Sapper template not needing a div to execute - NPM packages updates: @rollup/plugin-commonjs 11.1.0 has a bug about import/exports
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<script>
|
||||
import { createEventDispatcher } from 'svelte'
|
||||
const dispatch = createEventDispatcher()
|
||||
|
||||
// Props
|
||||
export let className = ''
|
||||
export let photos
|
||||
export let currentIndex
|
||||
const dispatch = createEventDispatcher()
|
||||
</script>
|
||||
|
||||
<ol class={className}>
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
import { onMount } from 'svelte'
|
||||
import { site, currentLocation } from 'utils/store'
|
||||
import { getThumbnail, formatDate } from 'utils/functions'
|
||||
|
||||
// Animations
|
||||
import { animateIn } from 'animations/Photo'
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<script>
|
||||
import { currentLocation } from 'utils/store'
|
||||
|
||||
// Components
|
||||
import IconGlobe from 'atoms/IconGlobe'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user