[examples/with-react-intl] Fix issues with Intl.js polyfill (#11806)
* Add workaround for Intl.js RegEx issue This change adds a workaround for an issue with the Intl.js polyfill library where it instantiates an invalid regular expression. Relevant issues: https://github.com/andyearnshaw/Intl.js/issues/270 https://github.com/andyearnshaw/Intl.js/issues/256 https://github.com/andyearnshaw/Intl.js/issues/306 Until this issue is fixed upstream, we use a workaround in the example. Fixes: #11777 * Do not load Intl.js polyfill by default on Node This change updates the `with-react-intl` example to prevent it from polyfilling `Intl` in a Node environment when it is not needed.
Showing
Please
register
or
sign in
to comment