⚠️ Use alias Rollup plugin to omit full imports
All checks were successful
continuous-integration/drone/push Build is passing
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:
@@ -1,6 +1,4 @@
|
||||
<script context="module">
|
||||
import { site, apiEndpoints } from '../utils/store'
|
||||
|
||||
// Variables
|
||||
let limit
|
||||
|
||||
@@ -29,30 +27,32 @@
|
||||
import { onMount } from 'svelte'
|
||||
import { stores } from '@sapper/app'
|
||||
import {
|
||||
apiEndpoints,
|
||||
site,
|
||||
currentLocation,
|
||||
currentPhotos,
|
||||
pageReady,
|
||||
pageTransition
|
||||
} from '../utils/store'
|
||||
import { charsToSpan } from '../utils/functions'
|
||||
} from 'utils/store'
|
||||
import { charsToSpan } from 'utils/functions'
|
||||
|
||||
// Dependencies
|
||||
import zenscroll from 'zenscroll'
|
||||
|
||||
// Components
|
||||
import Button from '../atoms/Button'
|
||||
import IconGlobeSmall from '../atoms/IconGlobeSmall'
|
||||
import IconGlobe from '../atoms/IconGlobe'
|
||||
import InteractiveGlobe from '../molecules/InteractiveGlobe'
|
||||
import Carousel from '../organisms/Carousel'
|
||||
import Fullscreen from '../organisms/Fullscreen'
|
||||
import Locations from '../organisms/Locations'
|
||||
import Footer from '../organisms/Footer'
|
||||
import SocialMetas from '../utils/SocialMetas'
|
||||
import Transition from '../utils/Transition'
|
||||
import Button from 'atoms/Button'
|
||||
import IconGlobeSmall from 'atoms/IconGlobeSmall'
|
||||
import IconGlobe from 'atoms/IconGlobe'
|
||||
import InteractiveGlobe from 'molecules/InteractiveGlobe'
|
||||
import Carousel from 'organisms/Carousel'
|
||||
import Fullscreen from 'organisms/Fullscreen'
|
||||
import Locations from 'organisms/Locations'
|
||||
import Footer from 'organisms/Footer'
|
||||
import SocialMetas from 'utils/SocialMetas'
|
||||
import Transition from 'utils/Transition'
|
||||
|
||||
// Animations
|
||||
import { animateIn } from '../animations/index'
|
||||
import { animateIn } from 'animations/index'
|
||||
pageTransition.onAnimationEnd = animateIn
|
||||
|
||||
// Props and variables
|
||||
|
||||
Reference in New Issue
Block a user