A key benefit of this approach is that you can add type checking gradually, per file.
npm install -g typescript
tsc filename.js …
In case you are trying to use parcel bundler or any code transformer using the Visual Studio Code (vscode) Chrome Debugger and get
Breakpoint ignored because generated code not found (source map problem?).
You’ll have to make sure that your generated source map points to the correct file paths.
In your launch.js
webRootto specify your source folder
Breakpoints may still not trigger on initial load. When you start the debugger which launches Chrome, there is a lag before vscode can attach to Chrome…