lxsmnsyc / solid-styled

Reactive stylesheets for SolidJS
MIT License
173 stars 10 forks source link

Fix typesVersions path mapping #6

Closed hasali19 closed 2 years ago

hasali19 commented 2 years ago

Thanks for this awesome library!

I've been running into an issue where vscode adds auto-imports like import { css } from 'solid-styled/*' instead of import { css } from 'solid-styled'. This change seems to fix it.

lxsmnsyc commented 2 years ago

Sorry about that. Yeah I discovered the root of the issue (which is the missing types field), however overwriting typesVersion won't be able to fix it alone since that field is automatically generated. Fear not, I've already fixed it on the bundler-side so I'll push a hotfix immediately. I'll merge this as part of the contribution, thanks!