Skip to content

Commit bef1035

Browse files
committed
how to import components to in Sveltekit/Vite
1 parent 559ff47 commit bef1035

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ You may get lots of source map source warnings as referenced [here](https://gith
113113

114114
https://kit.svelte.dev/faq#packages
115115
https://vitejs.dev/guide/dep-pre-bundling.html
116+
https://vitejs.dev/guide/features.html#npm-dependency-resolving-and-pre-bundling
116117
https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/faq.md#what-is-going-on-with-vite-and-pre-bundling-dependencies
117118
https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md#prebundlesveltelibraries
118119
https://github.com/vitejs/vite/issues/2892
@@ -126,7 +127,7 @@ A list of all components and their props can be found in our running instance of
126127

127128
After installation and bundler configuration all of the components are ready to be imported.
128129

129-
Just include `import { Button } from '@silintl/ui-components'` in your script section to import Button and any other components you want to use.
130+
Just include `import { Button } from '@silintl/ui-components'` (Sveltekit/Vite will need to use the full url) in your script section to import Button and any other components you want to use.
130131

131132
## overriding default sass variables
132133

0 commit comments

Comments
 (0)