Open3

TypeScript NodeJS Memo

hashitohashito

単一ファイルにコンパイル

下記の方法でできるものと思われる。
https://stackoverflow.com/questions/34474651/typescript-compile-to-single-file

しかし、下記のエラーが発生。コンパイラなどの環境が異なるためと思われる。

tsconfig.json:8:5 - error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.

8     "module": "commonjs",                           /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
      ~~~~~~~~

tsconfig.json:16:5 - error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.

16     "outFile": "./dist/index.js",                             /* Concatenate and emit output to single file. */
       ~~~~~~~~~


Found 2 errors.