[Pkg-javascript-devel] Bug#1016732: Bug#1016732: Please help to reproduce (Was: shiny-server: server-function? don't run)

Pirate Praveen praveen at onenetbeyond.org
Sat Feb 25 21:25:11 GMT 2023



On ഞാ, ഫെബ്രു 26 2023 at 02:33:31 രാവിലെ 
+05:30:00 +05:30:00, Pirate Praveen <praveen at onenetbeyond.org> wrote:
> 
> 
> On ഞാ, ഫെബ്രു 26 2023 at 02:24:00 രാവിലെ 
> +05:30:00 +05:30:00, Nilesh Patra <nilesh at debian.org> wrote:
>> On Sun, Feb 26, 2023 at 12:46:15AM +0530, Pirate Praveen wrote:
>> Thanks for the pointer. However, unfortunately even after propagating
>> the "-t" flag with coffee, the generated code does not work to fine 
>> (the
>> UI is not functional).
>> 
>> For now I have vendored coffee1 generated code itself. Do you have 
>> any
>> other ideas?
> 
> I can see we are using rollup to generate iife format files, which 
> may not be what npm dist tarball ships.
> 
> https://salsa.debian.org/js-team/node-sockjs/-/blob/master/debian/rules#L8
> 
> Upstream directly uses the output from coffee 
> https://salsa.debian.org/js-team/node-sockjs/-/blob/master/Makefile#L9
> 
> You could play around with rollup output format options I think. Try 
> umd format or try using webpack. You will have to inspect the npm 
> dist tarball to see what format it has. Copying Akshay if he has some 
> ideas.

Since we are using only lib directory in node, ignore the rollup part 
above. In sockjs 0.4 rc1 they removed coffee script dependency, so one 
thing we can try is to see if sockjs 0.4 rc1 works with shiny-server, 
though getting a new upstream version to bookworm may be a hard thing, 
but it may be a better option that vendoring what we have right now.



More information about the Pkg-javascript-devel mailing list