Skip to content

Commit

Permalink
Adds browserslist integration for browserify grunt task (#774)
Browse files Browse the repository at this point in the history
  • Loading branch information
desaikd committed Mar 29, 2024
1 parent ebd8966 commit fa47ca9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ module.exports = function(grunt) {
},
transform: [["babelify",
{
"presets": ["@babel/preset-env"], // TODO this targets ES2015, we should be more specific
"presets": ["@babel/preset-env"], // Follows the browserslist from package.json
"plugins" : [["@babel/transform-runtime"],
["@babel/transform-object-assign"]]
}]],
Expand All @@ -123,7 +123,7 @@ module.exports = function(grunt) {
},
transform: [["babelify",
{
"presets": ["@babel/preset-env"], // TODO this targets ES2015, we should be more specific
"presets": ["@babel/preset-env"], // Follows the browserslist from package.json
"plugins" : [["@babel/transform-runtime"],
["@babel/transform-object-assign"]]
}]],
Expand Down
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,13 @@
"typescript": "Mixed-in classes with functions returning `this` have TS2526 error is DTS file. Refernce issue: https://github.com/microsoft/TypeScript/issues/52687. Upgrade to a latest typescript version once this issue is resolved",
"typescript": "^3.9.10",
"yargs": "^17.5.1"
}
},
"browserslist": [
"Chrome >= 80.0",
"Firefox >= 80.0",
"Opera >= 63.0",
"Edge >= 80.0",
"Safari >= 14.1",
"Samsung >= 12.0"
]
}

0 comments on commit fa47ca9

Please sign in to comment.