How to make "identity" source map

Viewed 67

Background

I have a build process that copies JavaScript source files to certain locations.

I can then run it with Node.js.

However, when debugging with VSCode, it doesn't understand the relationship between the source files and the runtime files (and it's more complicated than a single remoteRoot).

Question

My proposed solution is to use a source map to map back to the original file.

How can I make a source map with identical content mapping, but just a change in the file path?

1 Answers
Related