Releases: yuanchuan/sveltekit-autoimport
Releases · yuanchuan/sveltekit-autoimport
v1.8.0
v1.7.0
v1.6.2
- Fixes issues where import broken with lang="ts". (Thanks to @stolinski )
- Add unit tests and CI.
- Add support for use as svelte preprocessor.
v1.5.0
-
Components now will be namespaced with its directory names by default.
<FormInput /> <!-- form/input.svelte --> <ChartPie /> <!-- charts/pie.svelte -->
-
New
prefix
option for adding custom prefix for components.autoImport({ components: [{ name: './src/components', prefix: 'shared' } ], })
So that
<SharedFormInput /> <!-- form/input.svelte -->
-
New
flat
option for turning off the namespace feature.autoImport({ components: [{ name: './src/components', flat: true } ], })
So that
<Popup /> <!-- modal/inline/popup.svelte -->