svelte-schema-form
svelte-schema-form copied to clipboard
Error when installing using sveltekit 1.x using vite 4.0
Hi folks! Appreciate the work you did on this lib. I wanted to test it using sveltekit 1.0 release and got stuck installing the library from npm. The vite version has changed to version 4 and the config will be slightly different for the new version. As pointed out in #8, building the library with npm run package
will not add the css files to exports
in the package/package.json
even though they are shipped inside the package, can thus not be imported. The default behaviour for scss is that it's just injected into the component, and this is handled by vite in the background. I could also not find an solution on how to tackle the problem of telling vite to add those css file to the package exports.