add //#sourceUrl comment so that debugging worker extensions becomes easier
This commit is contained in:
parent
dc950c0080
commit
691e13b5b5
1 changed files with 2 additions and 1 deletions
|
@ -50,7 +50,8 @@ export class ExtHostExtensionService extends AbstractExtHostExtensionService {
|
|||
}
|
||||
|
||||
// fetch JS sources as text and create a new function around it
|
||||
const initFn = new Function('module', 'exports', 'require', 'window', await response.text());
|
||||
const source = await response.text();
|
||||
const initFn = new Function('module', 'exports', 'require', 'window', `${source}\n//# sourceURL=${module.toString(true)}`);
|
||||
|
||||
// define commonjs globals: `module`, `exports`, and `require`
|
||||
const _exports = {};
|
||||
|
|
Loading…
Reference in a new issue