Import and Export ES Modules in Node.js using TypeScript with Babel Compilation | Dev Extent

As of Node.js version 13.2.0 ECMAScript modules are now supported by default without adding an experimental flag. Although, using ES Modules without making the required configuration changes will result in the error “SyntaxError: Cannot use import statement outside a module”. This is because Node.js, by default, is expecting the…