From 6a47bbc4d052fef41fb63128c8c5cc1b13bb8987 Mon Sep 17 00:00:00 2001 From: Andrey Polischuk Date: Fri, 27 Sep 2024 11:57:44 +0300 Subject: [PATCH] fix: compile to es2020 and es modules --- .size-limit.json | 4 ++-- tsconfig.json | 2 +- tsconfig.package.json | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.size-limit.json b/.size-limit.json index 7192671..daa7216 100644 --- a/.size-limit.json +++ b/.size-limit.json @@ -1,10 +1,10 @@ [ { "path": "packages/scoped-styles/dist/index.js", - "limit": "555 B" + "limit": "350 B" }, { "path": "packages/widget-element/dist/index.js", - "limit": "975 B" + "limit": "850 B" } ] diff --git a/tsconfig.json b/tsconfig.json index 66fb2cf..2ea5bbd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "extends": "@rambler-tech/ts-config/base", "compilerOptions": { - "target": "es2017", + "target": "es2020", "module": "esnext", "sourceMap": false, "strictPropertyInitialization": false, diff --git a/tsconfig.package.json b/tsconfig.package.json index b81d8e5..c9bbdd7 100644 --- a/tsconfig.package.json +++ b/tsconfig.package.json @@ -1,7 +1,6 @@ { "extends": "../../tsconfig.json", "compilerOptions": { - "module": "commonjs", "baseUrl": ".", "outDir": "dist" },