I have a typescript project that is build and distributed as es6 modules, so I have a tsconfig which sets "module": "es6".
When using ts-node in this project it doesn't work, (ts-)node throws SyntaxErrors since it doesn't support es6 modules yet. (I work around this by setting the TS_NODE_COMPILER_OPTIONS env variable)
But i'm wondering if ts-node should not just always 'override' this settings from a tsconfig file and always use commonjs...
I have a typescript project that is build and distributed as es6 modules, so I have a tsconfig which sets "module": "es6".
When using ts-node in this project it doesn't work, (ts-)node throws SyntaxErrors since it doesn't support es6 modules yet. (I work around this by setting the TS_NODE_COMPILER_OPTIONS env variable)
But i'm wondering if ts-node should not just always 'override' this settings from a tsconfig file and always use commonjs...