benjamine / fetch-wrap

extend WHATWG fetch wrapping it with middlewares
MIT License
23 stars 8 forks source link

es6 feature in middleware #4

Open lhtdesignde opened 6 years ago

lhtdesignde commented 6 years ago

Hi, I'm having a problem serving my webpack bundle to older browsers. I'm using your library but because of one little "const" in middleware.js it breaks. https://github.com/benjamine/fetch-wrap/blob/91faed95f7f544064e18474bf197d9204c04734e/src/middleware.js#L150

Would it be possible to replace "const" here with var?

lhtdesignde commented 6 years ago

Thanks for merging it in!