Skip to content

Error when installing using sveltekit 1.x using vite 4.0 #9

@gh-PonyM

Description

@gh-PonyM

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions