question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Force usage of polyfill

See original GitHub issue
  • I am on the latest ember-intl version
  • I have searched the issues of this repo and believe that this is not a duplicate

I’m running into issues related to #71 on older versions of Android Chromium Webview and I believe I’d be able to solve my problems if there were a way to force ember-intl to use IntlPolyfill; looking around the codebase, there doesn’t seem to be any way to do this, and the window.Intl property is read-only (window.Intl = … and Object.defineProperty don’t work).

Would you be interested in a PR to allow this? Can you think of any reasons this might be a terrible idea?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
machtycommented, Jul 26, 2017

I’ll try that; if that works, that’s preferable to my fork/spike, though it’d feel a little hacky to take advantage of those platform-provided properties being mutable even though window.Intl is not.

0reactions
stale[bot]commented, Oct 19, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to force Polymer to use polyfill - Stack Overflow
Polymer.dom = 'shadow ' forces Polymer to use the shadow DOM by default (either the polyfilled one if you used webcomponents.js or natively ......
Read more >
Force some polyfill into de bundle · Issue #2969 · vercel/next.js
I need to support some older browsers, so I would like to always include some polyfills (Intl, Object. assign and Promise) in the...
Read more >
How to load polyfills only when needed
I know three ready-to-use approaches for that: polyfill.io; the module / nomodule pattern; the useBuiltIns option in @babel/preset-env ...
Read more >
Polyfill JavaScript Only When You Need To - CSS-Tricks
Polyfill.io reads the User-Agent (UA) header of each request and returns polyfills that are suitable for the requesting browser. Tailor the ...
Read more >
How to use polyfills in your React app - LogRocket Blog
Polyfills are essential to using the latest and greatest tools in your apps. Learn how to build them from scratch in this post....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found