Is it possible to get Wrangler to reference source file names, not compiled ones, when error'ing?
See screenshot. This makes it quite hard to debug since I don't know what file the error happens in as it references compiled files (e.g.
/.wrangler/tmp/dev-BjjrCX/index.js
not my/original/file.js
). Thanks.6 Replies
If you add
minify=false
to your wrangler file then it should show the actual file paths.That doesn't seem to work. I've tried adding
minify = false
to both the top part of the TOML file and under [vars]
, with the same result. I'm still getting errors referencing compiled files.
@Cyb3r-Jok3 any further thoughts here? This doesn't seem to work, unless I'm somehow adding minify
to the wrong place.Do you have any custom build settings for your worker? Only other thing I could think of.
Nope, not that I know of. My setup is straight outta the CF tutorial on setting up workers, nothing funky going on.
Guess I'll raise a bug
Though just before I do, could you clarify where in the TOML to add the option - under
[vars]
or top-level?It would be top level
Yeah... weird.