1
0
mirror of https://github.com/lancedikson/bowser synced 2026-10-23 20:08:40 +00:00

fix: keep ESM consumers on ES5, enable tree-shaking, trim bundled.js (#634)

This commit is contained in:
Naor Peled
2026-09-27 12:10:11 +03:00
committed by GitHub
parent c1208b4a56
commit fd556800ee
6 changed files with 119 additions and 23 deletions

View File

@@ -35,6 +35,9 @@
"browser": "es5.js",
"module": "src/bowser.js",
"types": "index.d.ts",
"sideEffects": [
"./bundled.js"
],
"exports": {
".": {
"import": {
@@ -75,7 +78,8 @@
"./README.md": "./README.md",
"./index.d.ts": "./index.d.ts",
"./index.d.mts": "./index.d.mts",
"./package.json": "./package.json"
"./package.json": "./package.json",
"./package": "./package.json"
},
"repository": {
"type": "git",