jsr
jsr copied to clipboard
side effect imports with unknown module kinds like css
My ts file includes this side effect import that imports the css associated with the exported component:
import './style.css';
When I try to run npx jsr publish I get this error pointing at that import:
error: Expected a JavaScript or TypeScript module, but identified a Unknown module. Importing these types of modules is currently not supported.
Shouldn't jsr just ignore side effect imports like that instead of causing an error?
Getting the same issue. Any luck?
+1
Any update on this?
Same issue. Wanted to publish react/vue/svelte component libraries. Looks like jsr only support pure js/ts lib.
anything new?