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
This commit is contained in:
Pascal Hartig
2023-08-25 09:43:01 -07:00
committed by Facebook GitHub Bot
parent ff1e6f7784
commit 7ce86869e4
2 changed files with 2 additions and 2 deletions

View File

@@ -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": [

View File

@@ -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",