Is it possible to compile a typescript project in a typescript bundle?

158 views Asked by At

This is a trivial question: I'm using a tool that compiles typescript to Lua. However, this tool doesn't support node_module resolution yet.

But as a workaround, I could build the Lua sources in 2 steps:

  1. bundle my sources and all the dependencies in a single .ts file
  2. use TypeScriptToLua to generate the Lua file from the bundled file

Webpack and TSC are only able to generate JS as far as I know and google doesn't help

Therefore, my question is: is there any possibility to pack TS files into a TS bundle?

Thanks in advance

0

There are 0 answers