-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Tell user what browser support their application was built with #3782
Conversation
return { | ||
error: false, | ||
message: chalk.yellow( | ||
'$BROWSERSLIST was specified in your environment. ' + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not feeling great about being patronizing here.
If we decided to use browserlist
then IMO we should embrace however they're doing it. I think our tone should be more like
"Built the bundle with support for (list of browsers) because (where we read the list)"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we care about where the configuration comes from, or just to display what configuration was used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to display both. But if that requires reimplementing half of browserlist maybe we can just show the config used, and file an issue with them asking to expose the source info.
7dd25b6
to
e7a7a6f
Compare
This is good enough for an alpha. |
* Warn about browsers during build * Better message
…book#3782) * Warn about browsers during build * Better message
…book#3782) * Warn about browsers during build * Better message
…book#3782) * Warn about browsers during build * Better message
This PR warns about specifying browsers with a method other than
package.json
after build.This PR also prevents
build
/start
when no browsers are specified.TODO:
package.json
(?)Fixes #3779