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.

Replace warning with smaller version

See original GitHub issue

warning package is published as a strong mirror of fbjs thing. Maintainer even do not want to support esm. This requires to transpile more packages from commonjs when bundling app with rollup.

There is a smaller alternative https://github.com/alexreardon/tiny-warning. It doesn’t allow passing arguments and interpolation should be used instead. It’s distributed as esm and has flow types out of the box.

react-router already migrated to it. https://github.com/ReactTraining/react-router/blob/master/packages/react-router/package.json#L50-L51

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:27 (27 by maintainers)

github_iconTop GitHub Comments

3reactions
HenriBeckcommented, Dec 26, 2018

Let’s migrate then?

2reactions
TrySoundcommented, Nov 9, 2018

Hey, guys. ie9 is dead browser. I think major release is a good reason to stop supporting it. https://www.microsoft.com/en-us/WindowsForBusiness/End-of-IE-support

Read more comments on GitHub >

github_iconTop Results From Across the Web

Compiler Warnings by compiler version | Microsoft Learn
We recommend you always compile at the highest regular warning level, /W4 , and remove the /Wv option in your build as soon...
Read more >
Can I treat a specific warning as an error? - Stack Overflow
Visual Studio reports a warning C4715 (not all control paths return a value), and I would like to treat all warnings C4715 as...
Read more >
Disable all warnings. | Apple Developer Forums
hi, I want to know how to remove/disable all errors on Xcode while am writing a code, as am practicing for an exam...
Read more >
Swift Tip - #warning & #error - YouTube
In this video I discuss one of my favorite features of Swift that was introduced in Swift 4.2, # warning and #error.
Read more >
May 2022 Status Update for Clear and Reasonable Warnings
The proposed rulemaking to amend the regulation related to short-form Proposition 65 warnings was initially noticed in the California ...
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