Skip to content

chore: remove unused tslib dependency#97

Merged
JuroUhlar merged 1 commit into
mainfrom
chore/remove-unused-tslib
Apr 17, 2026
Merged

chore: remove unused tslib dependency#97
JuroUhlar merged 1 commit into
mainfrom
chore/remove-unused-tslib

Conversation

@JuroUhlar

Copy link
Copy Markdown
Contributor

tslib was a runtime dependency but the built output (dist/fingerprint-vue.js / .mjs) contains zero references to it — the es2020 target emits no TS helpers, and Vite would inline any that were needed. Removes unnecessary weight from consumers' node_modules.

Verified: pnpm build clean, grep tslib dist/* returns 0, 27/27 tests pass.

@github-actions

github-actions Bot commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements 95.65% 66/69
🟢 Branches 100% 26/26
🟢 Functions 83.33% 10/12
🟢 Lines 98.51% 66/67

Test suite run success

27 tests passing in 6 suites.

Report generated by 🧪jest coverage report action from 5b3e95d

Show full coverage report
St File % Stmts % Branch % Funcs % Lines Uncovered Line #s
🟢 All files 95.65 100 83.33 98.5
🟢  src 86.36 100 66.66 95
🟢   client.ts 100 100 100 100
🟢   config.ts 100 100 100 100
🟢   plugin.ts 100 100 100 100
🟢   symbols.ts 100 100 100 100
🔴   utils.ts 0 100 0 0 1
🟢  src/mixins 100 100 100 100
🟢   mixins.ts 100 100 100 100
🟢  ...useVisitorData 100 100 100 100
🟢   ...isitorData.ts 100 100 100 100

The bundled output contains no references to tslib (target: es2020 needs
no TS helpers, and Vite would inline any that were needed). It was only
pulling extra weight into consumers' node_modules.
@JuroUhlar JuroUhlar force-pushed the chore/remove-unused-tslib branch from de28e67 to 5b3e95d Compare April 17, 2026 14:24
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Following releases will be created using changesets from this PR:

@fingerprint/vue@2.0.1

Patch Changes

  • Remove unused tslib runtime dependency. (5b3e95d)

@JuroUhlar JuroUhlar merged commit f37aa8c into main Apr 17, 2026
7 checks passed
@JuroUhlar JuroUhlar deleted the chore/remove-unused-tslib branch April 17, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants