bowser-js / bowser

a browser detector
Other
5.48k stars 486 forks source link

Copyright not included in bundled.js #503

Open ajorg-aws opened 2 years ago

ajorg-aws commented 2 years ago

When bundling bowser with other code there's nothing to distinguish bowser or indicate its license. This appears to be because the bundling process used by bowser strips out copyright and license statements.

I see the following in https://github.com/lancedikson/bowser/blob/master/src/bowser.js and normally the /*! would protect it from being stripped by a bundler, unless the bundler is configured to strip everything.

/*!
 * Bowser - a browser detector
 * https://github.com/lancedikson/bowser
 * MIT License | (c) Dustin Diaz 2012-2015
 * MIT License | (c) Denis Demchenko 2015-2019
 */

Including these, or some simpler form, in the bundled.js package helps enable others to comply with the terms of the MIT license.