diff --git a/.changeset/pink-spies-smash.md b/.changeset/pink-spies-smash.md new file mode 100644 index 0000000000..ac263a0d96 --- /dev/null +++ b/.changeset/pink-spies-smash.md @@ -0,0 +1,21 @@ +--- +"@justeattakeaway/pie-assistive-text": minor +"@justeattakeaway/pie-button": minor +"@justeattakeaway/pie-card": minor +"@justeattakeaway/pie-chip": minor +"@justeattakeaway/pie-cookie-banner": minor +"@justeattakeaway/pie-divider": minor +"@justeattakeaway/pie-form-label": minor +"@justeattakeaway/pie-icon-button": minor +"@justeattakeaway/pie-input": minor +"@justeattakeaway/pie-link": minor +"@justeattakeaway/pie-modal": minor +"@justeattakeaway/pie-notification": minor +"@justeattakeaway/pie-spinner": minor +"@justeattakeaway/pie-switch": minor +"@justeattakeaway/pie-tag": minor +"@justeattakeaway/pie-webc-core": minor +"@justeattakeaway/pie-icons-webc": minor +--- + +[Changed] - Update tsconfig target to es2021 diff --git a/.changeset/selfish-cooks-travel.md b/.changeset/selfish-cooks-travel.md new file mode 100644 index 0000000000..855e30b84b --- /dev/null +++ b/.changeset/selfish-cooks-travel.md @@ -0,0 +1,5 @@ +--- +"@justeattakeaway/pie-components-config": minor +--- + +[Changed] - Updated TSConfig file with es2021 target diff --git a/configs/pie-components-config/tsconfig.json b/configs/pie-components-config/tsconfig.json index 606a8cebbe..f5b501f8d3 100644 --- a/configs/pie-components-config/tsconfig.json +++ b/configs/pie-components-config/tsconfig.json @@ -1,8 +1,8 @@ { "compilerOptions": { - "target": "ES6", + "target": "es2021", "module": "ES2022", - "lib": ["es2020", "DOM", "DOM.Iterable"], + "lib": ["es2021", "DOM", "DOM.Iterable"], "declaration": true, "declarationMap": true, "sourceMap": true, @@ -21,7 +21,8 @@ "forceConsistentCasingInFileNames": true, "allowImportingTsExtensions": true, "noEmit": true, - "types": ["vitest/globals"] + "types": ["vitest/globals"], + "useDefineForClassFields": false }, "exclude": [] }