Skip to content

Commit

Permalink
update browser target such that es6 classes are preserved
Browse files Browse the repository at this point in the history
babel can't transpile classes that extend native classes

babel/babel#8656
  • Loading branch information
minrk committed Aug 6, 2019
1 parent 320a53b commit 4f71f21
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion webpack.config.js
Expand Up @@ -60,6 +60,7 @@ module.exports = {
use: {
loader: "babel-loader",
options: {
cacheDirectory: true,
presets: [
[
"@babel/preset-env",
Expand All @@ -68,7 +69,12 @@ module.exports = {
corejs: 3,
shippedProposals: true,
targets: {
browsers: ["chrome 60", "firefox 45", "ie 10", "safari 9"],
browsers: [
"chrome 60",
"edge 15",
"firefox 45",
"safari 10",
],
},
},
],
Expand Down

0 comments on commit 4f71f21

Please sign in to comment.