date-fns-tz: Runtime error on IE 11
Hey,
It seems that there are const declarations in the es bundle, e.g.:
date-fns-tz/esm/_lib/tzTokenizeDate/index.js, l.23
const { type, value } = formatted[i]
I only have 12 occurences of const in the whole output of my build, and I’m pretty sure it shouldn’t occur, since IE doesn’t support it.
Is there something I am missing here?
Thanks in advance!
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 15 (12 by maintainers)
Commits related to this issue
- Use var instead of const for esm build which is not transpiled (#6) — committed to marnusw/date-fns-tz by marnusw 5 years ago
Odd. I thought I was using the same Babel configuration as
date-fns. I will take a look.