Upgrade to Vite 3

This commit is contained in:
venashial
2022-07-16 16:15:06 -07:00
parent 9c07612274
commit fe415cbd77
8 changed files with 276 additions and 317 deletions

View File

@@ -18,13 +18,7 @@
let api = { props: [], events: [], slots: [] }
if ($page.url.pathname.includes('components')) {
if (import.meta.env.DEV) {
import(`../../src/components/${title}.svelte?raw&sveld`).then(
(output) => (api = output.default)
)
} else {
api = COMPONENT_API[`${title}.svelte`]
}
api = COMPONENT_API[`${title}.svelte`]
}
</script>