New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detect when a polyfill is missing #690
Comments
This is a great idea. Ship it! ;-) |
👍 this would of saved me some debugging time this morning :) |
If this is something that we still want to do I'll be happy to hack on it. if (process.env.NODE_ENV === 'development') {
warning(
-es6-features-here,
'message here'
);
} Would something like that work and where should the check live? RelayPublic? |
@edvinerikson the best place is Relay.js. The check should likely use |
Should we add some simple basic detection for missing polyfills so we can provide a helpful error message instead of some "method x is undefined" errors deep in the stack? (Example: #681)
Not full feature detection, but maybe something basic as:
The text was updated successfully, but these errors were encountered: