Open tfennelly opened 8 years ago
You're definitely not the first person to notice this. I haven't had any time to look into it. It seems like a global babel transform ought to fix this (and, you probably want one anyways if you don't want the finished result to have a "const" in it). The other alternative is to upgrade falafel
to something more recent that understands ES6? If you submit a PR, you'll make more than a few people happy. :)
Same with async keyword
Hi.
We have a global require transform that balks on a module that uses a
const
variable decl. We get the following error:Where
83:6
is pointing at aconst
.I tried the latest version of
browserify
andbrowserify-transform-tools
.Is there anything I can do? Maybe I need to apply a global babel transform or something? Seems bad to publish unprocessed modules with
const
etc in them.