mirror of
https://github.com/lancedikson/bowser
synced 2025-12-05 06:02:14 +00:00
Add named exports for tree shaking support with Vite
Co-authored-by: naorpeled <6171622+naorpeled@users.noreply.github.com>
This commit is contained in:
parent
7e479e91e8
commit
4a0861a02c
@ -75,3 +75,10 @@ class Bowser {
|
||||
}
|
||||
|
||||
export default Bowser;
|
||||
|
||||
// Named exports for tree shaking
|
||||
export const { getParser } = Bowser;
|
||||
export const { parse } = Bowser;
|
||||
export {
|
||||
BROWSER_MAP, ENGINE_MAP, OS_MAP, PLATFORMS_MAP,
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user