I am writing a node module {module set}, and in the future this may be ported to the browser environment. For this reason, I am looking for programming methods that will allow me to write the code once, and then reuse the same, maybe if this requires some kind of working assembly, its fine.
Well, if it's a workflow,
- write node modules
- run some build script that converts the above written code into a single js file to be able to run in a browser environment.
Please do not offer me a browser.
Why is there no browser or other similar material? I saw the code that was generated. It was huge and had a lot of browser code entered. I found it difficult to troubleshoot and go through the code I wrote
source share