bublejs / buble

https://buble.surge.sh
MIT License
871 stars 67 forks source link

Fails on shebang #174

Closed marvinhagemeister closed 5 years ago

marvinhagemeister commented 5 years ago

Currently bublé will throw an error when it encounters a shebang. Adding the acorn option allowHashBang to the existing transform options fixes that. https://github.com/Rich-Harris/buble/blob/77cf57d743077108587f091d5f24487359fd252f/src/index.js#L56

adrianheine commented 5 years ago

Yeah, I'd be willing to merge a PR implementing this change.