From 212b5a616c9e1ebabe1300ba8f2ce461ff4310ae Mon Sep 17 00:00:00 2001 From: phn210 Date: Mon, 25 Mar 2024 01:11:36 +0100 Subject: [PATCH] update build config to reduce package size --- tsconfig.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 1039dc3..9e7d7fd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "target": "es2020", "module": "es2022", - "lib": ["dom", "esnext"], + "lib": ["esnext"], "outDir": "./build/esm", "rootDir": ".", "strict": true, @@ -17,7 +17,9 @@ "declaration": true, "sourceMap": true, "noFallthroughCasesInSwitch": true, - "allowSyntheticDefaultImports": true + "allowSyntheticDefaultImports": true, + "importHelpers": true, + "removeComments": true }, "include": ["src/**/*.ts"] }