You may have heard of Deno which is a new TypeScript runtime.
One major difference between Deno and normal TypeScript is that you must include the file extension in the import statement. e.g:
import foo from './bar.ts'
^^
I would like to write code that is compatible with both Deno and Webpack.
How can I configure Webpack to allow importing with .ts
extension like above?
Also, how can I prevent the following VSCode error?