Closed as not planned
Description
Which Cloudflare product(s) does this pertain to?
Wrangler
What versions & operating system are you using?
wrangler 4.15.2
Please provide a link to a minimal reproduction
No response
Describe the Bug
I have the following worker.js code:
try{
console.log(new Error('test-err').stack);
}catch(err){
}
export default {
async fetch(request, env) {
return env.ASSETS.fetch(request);
},
};
//# sourceURL=/workers-root/index-worker.js
From the command line directory /path/to/workers-root/index-worker/
:
when running npx wrangler dev
i get the following output in the console:
Error: test-err
at null.<anonymous> (/path/to/workers-root/index-worker/src/worker.js:2:14)
which does not reflect the sourceURL comment.
Then just to check i ran node src/worker.js
and i get the following output (ignoring the rest of the errors):
Error: test-err
at /workers-root/index-worker.js:2:14
which does reflect the sourceURL comment which is what is expected.
Is there any setting I'm missing to enable the //# sourceURL=
comment for debugging?
Please provide any relevant error logs
No response
Metadata
Metadata
Assignees
Type
Projects
Status
Done