Goulven
How do I build my component?
Yeah, you can say that. But it doesn't change much about my problem, I still need to output an "App" (my component) as a
js
files that can be add to any website. Even not at compile time, and even if this website don't use SolidJS.24 replies
How do I build my component?
My goal is to build a component that I can publish on NPM, so my users can easily import it into their website. I can't asume that they will use it at compile time (they could just put it in a
<script>
tag) not that they use Solid themself.24 replies
How do I build my component?
Vite devs don't recommend to use Vite for building libs. And anyway, I still thinks this should be documented and/or bundler-agnostic. If it's not the scope of SolidJS I can understand, but I'll have to come back to Preact.
24 replies
How do I build my component?
Hum, thanks @REEEEE @jer3m01 , I'll look into that.
But I have to admit that it surprise me a little bit that I have to take a look at librairies's complex repository from others orgs, that use different bundlers than me... Just for something as simple as building for the web?
For comparison, here is the procedure on Preact, which I used before switching to SolidJS:
my-app/tsconfig.json
And then run tsc
for TypeScript to compile.
Even though the process is not as straightforward on SolidJS, I think it still deserves to be bundler-agnostic and to be documented somewhere...24 replies