You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<script>importComponentfrom"$lib/Component.svelte";import{Component2}from"$lib";// if you created 'index.js' in src/lib</script>
However, if you're building a svelte package and want to supply nice documentation for it, using $lib is not the best option.
Examples should show that you import from your just being built package. Is there a trick then to replace $lib with the package_name in the rendered examples?
<script>importComponentfrom"my-package-name/Component.svelte";import{Component2}from"my-package-name";// if you created 'index.js' in src/lib</script>
The text was updated successfully, but these errors were encountered:
All works perfectly with:
However, if you're building a svelte package and want to supply nice documentation for it, using
$lib
is not the best option.Examples should show that you import from your just being built package. Is there a trick then to replace
$lib
with thepackage_name
in the rendered examples?The text was updated successfully, but these errors were encountered: