From 7ce86869e4bc4c48fed6eaa57b012068aac79115 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Fri, 25 Aug 2023 09:43:01 -0700 Subject: [PATCH] Build plugins with ES2021 Summary: Starting small as this will unblock D48642120. If it works without causing any issues, I'll update the remaining ones. We're on Node v18 everywhere now, so this should be compatible. According to https://node.green/ that should cover nearly everything. Reviewed By: lblasa Differential Revision: D48683680 fbshipit-source-id: 26d2788468b673793b70b6339d1845c1dcf7e05d --- desktop/flipper-plugin/tsconfig.json | 2 +- desktop/plugins/tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/desktop/flipper-plugin/tsconfig.json b/desktop/flipper-plugin/tsconfig.json index 75eb3e212..64886750f 100644 --- a/desktop/flipper-plugin/tsconfig.json +++ b/desktop/flipper-plugin/tsconfig.json @@ -3,7 +3,7 @@ "compilerOptions": { "outDir": "lib", "rootDir": "src", - "lib": ["dom", "ES2019"], + "lib": ["dom", "ES2021"], "types": ["jest", "../types/jest-extensions", "react/next", "react-dom/next"] }, "references": [ diff --git a/desktop/plugins/tsconfig.json b/desktop/plugins/tsconfig.json index be4c80a0c..2b9dd7346 100644 --- a/desktop/plugins/tsconfig.json +++ b/desktop/plugins/tsconfig.json @@ -5,7 +5,7 @@ "baseUrl": ".", "rootDir": ".", "outDir": "lib", - "lib": ["DOM", "ES2019"], + "lib": ["DOM", "ES2021"], // TODO: ideally we'd move those into specific packages "types": [ "../types/ReactDebounceRender",