From 7e6d04380b3a556564dcff351aa49408a255c4d2 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Sat, 16 Sep 2023 22:09:13 -0400 Subject: [PATCH] Transform `for await...of` syntax for @redux-devtools/remote (#1496) * Transform for await...of for @redux-devtools/remote * Create green-bulldogs-serve.md --- .changeset/green-bulldogs-serve.md | 5 +++++ packages/redux-devtools-remote/babel.config.esm.json | 9 ++++++++- packages/redux-devtools-remote/babel.config.json | 8 +++++++- 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 .changeset/green-bulldogs-serve.md diff --git a/.changeset/green-bulldogs-serve.md b/.changeset/green-bulldogs-serve.md new file mode 100644 index 00000000..4209be72 --- /dev/null +++ b/.changeset/green-bulldogs-serve.md @@ -0,0 +1,5 @@ +--- +'@redux-devtools/remote': patch +--- + +Transform `for await...of` syntax for @redux-devtools/remote to support Hermes Engine diff --git a/packages/redux-devtools-remote/babel.config.esm.json b/packages/redux-devtools-remote/babel.config.esm.json index 1c02687e..4265ea4c 100644 --- a/packages/redux-devtools-remote/babel.config.esm.json +++ b/packages/redux-devtools-remote/babel.config.esm.json @@ -1,6 +1,13 @@ { "presets": [ - ["@babel/preset-env", { "targets": "defaults", "modules": false }], + [ + "@babel/preset-env", + { + "targets": "defaults", + "include": ["@babel/plugin-transform-async-generator-functions"], + "modules": false + } + ], "@babel/preset-typescript" ], "plugins": ["@babel/plugin-transform-runtime"] diff --git a/packages/redux-devtools-remote/babel.config.json b/packages/redux-devtools-remote/babel.config.json index 5ed95986..050dc3ef 100644 --- a/packages/redux-devtools-remote/babel.config.json +++ b/packages/redux-devtools-remote/babel.config.json @@ -1,6 +1,12 @@ { "presets": [ - ["@babel/preset-env", { "targets": "defaults" }], + [ + "@babel/preset-env", + { + "targets": "defaults", + "include": ["@babel/plugin-transform-async-generator-functions"] + } + ], "@babel/preset-typescript" ], "plugins": ["@babel/plugin-transform-runtime"]