Is it possible to get Wrangler to reference source...
# workers-help
m
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.
c
If you add
minify=false
to your wrangler file then it should show the actual file paths.
m
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.
c
Do you have any custom build settings for your worker? Only other thing I could think of.
m
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?
c
It would be top level
m
Yeah... weird.