Skip to content

Commit

Permalink
Enhancement: Added browser compatibility info to babel (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
sayan-mitra authored Oct 11, 2021
1 parent 230fe61 commit 4320397
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,23 @@ export default {

babel({
exclude: ["node_modules/@babel/**", "node_modules/core-js/**"],
presets: [["@babel/env"]],
presets: [
[
"@babel/env",
{
corejs: "3.6",
useBuiltIns: "entry",
targets: {
edge: "15",
firefox: "40",
ie: "10",
chrome: "37",
safari: "7",
opera: "23",
},
},
],
],
plugins: [
[
"@babel/plugin-proposal-class-properties",
Expand All @@ -111,7 +127,7 @@ export default {
},
],
["@babel/plugin-transform-arrow-functions"],
["@babel/plugin-transform-object-assign"]
["@babel/plugin-transform-object-assign"],
],
}),
process.env.uglify === "true" && terser(),
Expand Down

0 comments on commit 4320397

Please sign in to comment.