Closed
Description
Prior Issues
None that I could find.
What is the current behavior?
Redux causes my application to crash on some ES5 browsers because of a nested function within an if
statement in kindOf.ts. This is not permitted in ES5 and Babel does not seem to provide a transform for this, probably because it would break existing code.
The exact console log is this: SyntaxError: Nested functions cannot be declared in strict mode.
Steps to Reproduce
It's a bit hard to create a live repro case for this, since finding an ES5 browser is difficult nowadays. However, I can provide a gist with my Babel and browserslist configurations as well as a file highlighting the issue.
What is the expected behavior?
Redux should run in an ES5 environment with a standard Babel configuration.
Environment Details
Browser: Midori 0.5.11 on Ubuntu 18.04
Metadata
Metadata
Assignees
Labels
No labels