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"]