Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In daily-react-hooks, prevent Babel from running its regenerator tran…
…sform, avoiding the known [regenerator unsafe-eval issue](facebook/regenerator#378). As far as I could tell our code is not relying on `yield` or generator functions (`function*`), so this should be safe. The build tool TSDX depends on Babel and the problematic transform. Fortunately, TSDX [supports](https://github.com/jaredpalmer/tsdx#babel) specifying a partial `.babelrc` which is automatically merged into its default Babel configuration. I sanity-checked that Babel `'preset-env'` option merging works as expected by adding logging to TSDX. This is the same fix we already applied to daily-js and the call machine in [this commit](daily-co/pluot-core@a98e54b).
- Loading branch information