Skip Typescript compilation on packaging

This commit is contained in:
venashial
2022-06-20 23:50:33 -07:00
parent 252c812125
commit f70f670ed3
31 changed files with 171 additions and 132 deletions

View File

@@ -16,7 +16,7 @@
$page.url.pathname.replace('/', '') || 'index'
}.md`
let api
let api = { props: [], events: [], slots: [] }
if ($page.url.pathname.includes('components')) {
if (import.meta.env.DEV) {
import(`../../src/components/${title}.svelte?raw&sveld`).then(