Javascript Development Workflow

Hi folks,

as my Javascript code for the General Javascript View Node gets larger and larger I need to improve my workflow. Editing the code inside of the node is way to fiddling.
What I do is to write the .js Code with VSCode and load the file via a File Reader Node into a flow variable which is then connected to the View Node. I was able to split .js files by using require and define.
Another improvement would be to switch to Typescript.
But I so far I was not able to find a way to generate a single .js file from multiple .ts files which can be then executed by the View node. The generated code includes require and define statements Knime does not accept.
Is this possible, can somebody outline the steps of a setup where the code is developed in Typescript and built to be used in the view node?
Thanks

Hi @wsturmzfknime,

what exactly is the purpose of your code? I too wrote some lines here and there but never exceeding approximately 100 lines because of the way Knime works and is intended to get used.

Best
Mike

I build my one plotly.js graphs, with the ability to interactively filter data and make selections/filters which are forward to a Table View. The scatter is a x/y line. One Dashboard/component contains more than one graph showing different aspects of the data. Selection (on a line base, not on a point base) in one plot are reflected to the other graph.

during my research I found webpack I am quite happy about. It can join multiple ts or js files to a non dependent .js file within VSCode, I then load with into the knime node