Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Commit

Permalink
perf!: Import helpers from tslib (#391)
Browse files Browse the repository at this point in the history
Helpers are imported rather than inlined. This means consumers will need to provide `tslib` themselves, but that means they should be able to produce smaller bundles for their apps too.
  • Loading branch information
sndrs authored Aug 30, 2022
1 parent 276516f commit f9db5e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"web-vitals": "2.0.0"
},
"peerDependencies": {
"tslib": "^2.4.0",
"web-vitals": "^2.0.0"
},
"publishConfig": {
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"compilerOptions": {
"allowJs": true,
"forceConsistentCasingInFileNames": true,
"importHelpers": true,
"isolatedModules": true,
"noEmit": true,
"target": "ES2020"
Expand Down

0 comments on commit f9db5e5

Please sign in to comment.