From f9db5e574ed3d599a685ad01cccc80b7e950464b Mon Sep 17 00:00:00 2001 From: Alex Sanders Date: Tue, 30 Aug 2022 12:41:07 +0100 Subject: [PATCH] perf!: Import helpers from `tslib` (#391) 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. --- package.json | 1 + tsconfig.json | 1 + 2 files changed, 2 insertions(+) diff --git a/package.json b/package.json index 5636b9f..1c2be35 100644 --- a/package.json +++ b/package.json @@ -59,6 +59,7 @@ "web-vitals": "2.0.0" }, "peerDependencies": { + "tslib": "^2.4.0", "web-vitals": "^2.0.0" }, "publishConfig": { diff --git a/tsconfig.json b/tsconfig.json index 6463350..ae6f064 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,6 +3,7 @@ "compilerOptions": { "allowJs": true, "forceConsistentCasingInFileNames": true, + "importHelpers": true, "isolatedModules": true, "noEmit": true, "target": "ES2020"