• If you don’t usewebpackWait to package, but to adopttscTypescript has built-in packaging, so you need to be careful when using the debugger:
  1. If you useimportSyntax, then need to installts-loaderBecause thenodeThe environment cannot be resolved directlyimportSyntax to configure yourluncher.jsonVscode in the project
  2. If you want to addruntimeArgsConfigure vscode to tell vscode that you need to use the ts-loader in order to run in the node environmenttsFile, encounteredimportWill not return an error
{
	// Use IntelliSense to learn about related attributes.
	// Hover to view descriptions of existing properties.
	/ / for more information, please visit: https://go.microsoft.com/fwlink/?linkid=830387
	"version": "0.2.0"."configurations": [{"type": "node"."request": "launch"."name": "Start program"."skipFiles": ["<node_internals>/**"]."runtimeArgs": [
				"-r"."${workspaceFolder}/node_modules/ts-node/register"].// Get the TS-Node dependency for your current project
			"program": "${workspaceFolder}/src/Index.ts"."outFiles": ["${workspaceFolder}/**/*.js"]."sourceMaps": true."protocol": "auto"}}]Copy the code