Skip to main content
Script.prototype.sourceMapURL - node__vm.d.ts - Node documentation
property Script.prototype.sourceMapURL

Usage in Deno

```typescript import { Script } from "node:node__vm.d.ts"; ```
When the script is compiled from a source that contains a source map magic comment, this property will be set to the URL of the source map. ```js import vm from 'node:vm'; const script = new vm.Script(` function myFunc() {} //# sourceMappingURL=sourcemap.json `); console.log(script.sourceMapURL); // Prints: sourcemap.json ```

Type

string | undefined