bowser icon indicating copy to clipboard operation
bowser copied to clipboard

Copyright not included in bundled.js

Open ajorg-aws opened this issue 2 years ago • 0 comments

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.

ajorg-aws avatar Jan 10 '22 14:01 ajorg-aws