use browserlist instead of hardcoded babel presets
This commit is contained in:
parent
ea8d270a9f
commit
69019b2df4
|
@ -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 = []
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue