Trying to require .ts
file that uses the export
syntax in .js
node script and getting the following error:
export {
^^^^^^
SyntaxError: Unexpected token 'export'
How can I do it succesfully? I can’t use babel
or change anything in package.json
. Any ideas?