use browserlist instead of hardcoded babel presets

This commit is contained in:
Dima Gerasimov 2022-12-28 00:54:50 +00:00 committed by karlicoss
parent ea8d270a9f
commit 69019b2df4
2 changed files with 1 additions and 6 deletions

View file

@ -1,10 +1,4 @@
const presets = [ const presets = [
[
'@babel/preset-env',
// https://caniuse.com/usage-table
// TODO ideally should use https://github.com/browserslist/browserslist
{targets: {chrome: 75, firefox: 75}}
],
'@babel/preset-flow', '@babel/preset-flow',
] ]
const plugins = [] const plugins = []

View file

@ -15,6 +15,7 @@
"release:cws": "chrome-webstore-upload", "release:cws": "chrome-webstore-upload",
"release:amo": "web-ext-submit" "release:amo": "web-ext-submit"
}, },
"browserslist": ["defaults and supports es6-module"],
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/karlicoss/grasp.git" "url": "git+https://github.com/karlicoss/grasp.git"