Skip to content

speeding up builds with tsc in child process #13588

Closed
@ORESoftware

Description

@ORESoftware

I have this line of code in Node.js which sends stdin to a bash child process

shell.stdin.write('tsc --jsx react --module amd --target es5 ' + path + '\n');

even transpiling 1 file takes about 1.5 seconds. Is there anyway I could somehow speed this up? the only thing I can think of is to have tsc be already running as a server and send it an ipc or socket message.

The problem with using tsc --watch is that I need to add a hook, such that when tsc is done with a transpilation I can run some other code. I would be happy to use tsc --watch to speed this up but I don't know how in this case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions