Hacker News new | ask | show | jobs
by root_axis 19 days ago
> On application startup I assemble together the various front end files I need and store this in memory as a string.

So in other words, you created your own bundler?

Node isn't actually doing the work for you on the front-end.

1 comments

Again, I never said Node is did anything for the front end.
Again, yes you explicitly did:

> I just write my code and then point node at the main file, and this even includes front-end code for the browser.

It sounds like you're just making stuff up.

If you hire me as a consultant I will do it for you at $150 per hour.
You said:

> I just write my code and then point node at the main file, and this even includes front-end code for the browser.

Then you said:

> I never said Node is did anything for the front end.

So which is it?

Since you need just a little help…

Yes, I push all my TS code through Node for type stripping. No, Node is not executing browser code. No, I am not suggesting Node is running in the browser.

For extra extra extra clarity importing functions in JavaScript does not execute them. They still have to be called for them to execute.

I am still willing to fix your code for a consultation fee.

yeah this is a bit confusing. so you strip the types from the frontend and serve the .ts file as .js file? That's a transpiler/bundler.