Upgrade to Vite 3
This commit is contained in:
1 parent
9c07612274
commit
fe415cbd77
8 files changed
+276
-317
No files matched your search
@@ -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>
|
||||
|
||||
|
||||
Reference in new issue
Block a user