2 ms·
Node now executes TS directly without a build step. This includes TypeScript that only executes in the browser. Just import the given code file into your Node
by austin-cheney 1y ago
Node now executes TS directly without a build step. This includes TypeScript that only executes in the browser. Just import the given code file into your Node application and then send the output as a string:
my_script.toString();
Boom, strongly typed code with no compile step that executes in both Node and the browser.