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,12 +1,12 @@
|
||||
<script>
|
||||
import { stores } from '@sapper/app'
|
||||
import { randomString } from 'utils/functions'
|
||||
const { page } = stores()
|
||||
|
||||
// Props
|
||||
export let width = 56
|
||||
export let color = '#000'
|
||||
export let animated = false
|
||||
const { page } = stores()
|
||||
|
||||
// Generate a random ID for the mask
|
||||
const randomId = randomString(6, 'A')
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<script>
|
||||
import { stores } from '@sapper/app'
|
||||
import { randomString } from 'utils/functions'
|
||||
const { page } = stores()
|
||||
|
||||
// Props
|
||||
export let width = 56
|
||||
export let color = '#000'
|
||||
export let animated = false
|
||||
const { page } = stores()
|
||||
|
||||
// Generate a random ID for the mask
|
||||
const randomId = randomString(6, 'A')
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<script>
|
||||
import { onMount } from 'svelte'
|
||||
import { charsToSpan } from 'utils/functions'
|
||||
|
||||
// Animations
|
||||
import { animateIn } from 'animations/TitleSite'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user