Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
build: update browserslist with recent browsers
There seems to be some kind of bug in the generated code where the app silently fails to dispatch Vuex (asynchronous) actions, but only in prod builds. I have no idea what the root cause is, but targeting newer browser versions which have native async/await seems to no longer have the issue. This is lamentable, but I definitely don't have the time to track down a Babel bug.
  • Loading branch information
arxanas committed Apr 19, 2020
1 parent d8a586a commit f621f02
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions package.json
Expand Up @@ -65,8 +65,11 @@
}
},
"browserslist": [
"> 1%",
"last 2 versions"
"last 10 Chrome versions",
"last 10 Firefox versions",
"last 10 ChromeAndroid versions",
"last 10 FirefoxAndroid versions",
"last 2 iOS versions"
],
"babel": {
"presets": [
Expand Down

1 comment on commit f621f02

@earthboundkid
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"last 2 versions" includes IE10 and 11 (which is an insane default, but it is what it is) and that is probably related to the bug.

Please sign in to comment.