1
0
mirror of https://github.com/lancedikson/bowser synced 2026-09-23 04:24:54 +00:00
Files
lancedikson_bowser/build/entries/es5.js
2026-08-30 00:10:11 +03:00

16 lines
632 B
JavaScript

/**
* UMD entry point for `es5.js`.
*
* `src/bowser.js` also has named exports (`parse`, `getParser`) so that ESM
* consumers can `import { getParser } from 'bowser'`. A UMD bundle with named
* exports would expose `module.exports = { default, parse, getParser }`, which
* would break every existing `require('bowser')` and `window.bowser` consumer.
*
* Re-exporting only the default here keeps the UMD output at
* `module.exports = Bowser` / `window.bowser = Bowser`. The class carries
* `parse` and `getParser` as static methods, so nothing is lost.
*/
import Bowser from '../../src/bowser.js';
export default Bowser;