omrilotan / isbot

🤖/👨‍🦰 Detect bots/crawlers/spiders using the user agent string
https://isbot.js.org/
The Unlicense
905 stars 74 forks source link

[3.3.1] "const" keyword in index.js #160

Closed jlowcs closed 3 years ago

jlowcs commented 3 years ago

Steps to reproduce

Build an app with webpack using this library.

Expected behaviour

index.js should contain ES5 code for full browser support.

Actual behaviour

index.js contains one const keyword, and therefore webpack generated a bundle/chunk with a const keyword.

image

Additional details

jlowcs commented 3 years ago

looks like there are even more of those in the 4.0.0 rc btw:

image

omrilotan commented 3 years ago

Fix proposed: https://github.com/omrilotan/isbot/pull/161 Would appreciate your review.

Don't worry about 4.0.0 rc. This specific breaking version will not be released.

omrilotan commented 3 years ago
Resolved in 3.3.2