⚠️ Use alias Rollup plugin to omit full imports
All checks were successful
continuous-integration/drone/push Build is passing

- Define entries (utils, animations, etc) in the Rollup config in order to omit the whole back path (../../) when importing a file
- Global revoleExtensions in the config (to avoid duplicates)
This commit is contained in:
2020-03-30 23:53:01 +02:00
parent 58adc052c4
commit 2dc51a167a
33 changed files with 150 additions and 115 deletions

View File

@@ -4,7 +4,7 @@
// Lead 3: https://www.bypeople.com/css-js-webgl-rotating-3d-globe-effect/
import { onMount } from 'svelte'
import { locations } from '../utils/store'
import { locations } from 'utils/store'
// Props

View File

@@ -1,10 +1,10 @@
<script>
import { onMount } from 'svelte'
import { site, currentLocation } from '../utils/store'
import { getThumbnail, formatDate } from '../utils/functions'
import { site, currentLocation } from 'utils/store'
import { getThumbnail, formatDate } from 'utils/functions'
// Animations
import { animateIn } from '../animations/Photo'
import { animateIn } from 'animations/Photo'
// Props and variables
export let photo

View File

@@ -1,8 +1,8 @@
<script>
import { currentLocation } from '../utils/store'
import { currentLocation } from 'utils/store'
// Components
import IconGlobe from '../atoms/IconGlobe'
import IconGlobe from 'atoms/IconGlobe'
// Props
export let type = ''