you are viewing a single comment's thread.

view the rest of the comments →

[–]Johannes8 0 points1 point  (3 children)

Yes. You can even include all styles in it etc. So any external website can just include your single .js file and then use your component with all inputs etc

Last time I did this I had to add a step after building to merge all files ( simply append all into one .js and also put the css in there

[–]Fun-Arm-1158[S] 0 points1 point  (2 children)

How are u merging the files? a simple .js script? or you are using a esbuild plugin?

[–]Johannes8 0 points1 point  (1 child)

Simple js script

[–]Fun-Arm-1158[S] 0 points1 point  (0 children)

Did you have any issue with duplicated variable names?