Move to browserslist global config
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
Родитель
5a074f15d6
Коммит
111efa237e
15
.babelrc.js
15
.babelrc.js
|
@ -1,15 +0,0 @@
|
|||
module.exports = {
|
||||
presets: [
|
||||
[
|
||||
'@babel/preset-env',
|
||||
{
|
||||
targets: {
|
||||
browsers: ['last 2 versions', 'ie >= 11']
|
||||
},
|
||||
forceAllTransforms: true,
|
||||
modules: false
|
||||
},
|
||||
]
|
||||
],
|
||||
plugins: ['@babel/plugin-transform-runtime', '@babel/plugin-transform-react-jsx'],
|
||||
}
|
|
@ -1,2 +0,0 @@
|
|||
last 2 versions
|
||||
ie >= 11
|
|
@ -0,0 +1,15 @@
|
|||
module.exports = {
|
||||
plugins: [
|
||||
'@babel/plugin-transform-runtime',
|
||||
'@babel/plugin-transform-react-jsx'
|
||||
],
|
||||
presets: [
|
||||
[
|
||||
'@babel/preset-env',
|
||||
{
|
||||
forceAllTransforms: true,
|
||||
modules: false
|
||||
}
|
||||
]
|
||||
]
|
||||
};
|
|
@ -1382,6 +1382,11 @@
|
|||
"core-js": "^3.2.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"browserslist-config-nextcloud": {
|
||||
"version": "0.0.1",
|
||||
"resolved": "https://registry.npmjs.org/browserslist-config-nextcloud/-/browserslist-config-nextcloud-0.0.1.tgz",
|
||||
"integrity": "sha512-BUpPPPfE42jL2puSqfnsoOMoz6g+jqznoaoZmig4Kx1ULApBmM6iH+/7V1yblQz2PsOp39HET1byAB3h3h+kew=="
|
||||
},
|
||||
"core-js": {
|
||||
"version": "3.2.1",
|
||||
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.2.1.tgz",
|
||||
|
@ -2664,9 +2669,10 @@
|
|||
}
|
||||
},
|
||||
"browserslist-config-nextcloud": {
|
||||
"version": "0.0.1",
|
||||
"resolved": "https://registry.npmjs.org/browserslist-config-nextcloud/-/browserslist-config-nextcloud-0.0.1.tgz",
|
||||
"integrity": "sha512-BUpPPPfE42jL2puSqfnsoOMoz6g+jqznoaoZmig4Kx1ULApBmM6iH+/7V1yblQz2PsOp39HET1byAB3h3h+kew=="
|
||||
"version": "0.1.0",
|
||||
"resolved": "https://registry.npmjs.org/browserslist-config-nextcloud/-/browserslist-config-nextcloud-0.1.0.tgz",
|
||||
"integrity": "sha512-ruAx5nBTtSLKel+eSw12C0ylGzzfy5loJcfe8gbZ5JoxjwVkpe4V5TX1EHrImTHzhYOA2dXTfHUcCvF174Y1jg==",
|
||||
"dev": true
|
||||
},
|
||||
"buble": {
|
||||
"version": "0.19.7",
|
||||
|
|
|
@ -55,6 +55,7 @@
|
|||
"@babel/preset-env": "^7.3.1",
|
||||
"babel-eslint": "^10.0.1",
|
||||
"babel-loader": "^8.0.5",
|
||||
"browserslist-config-nextcloud": "^0.1.0",
|
||||
"css-loader": "^3.0.0",
|
||||
"eslint": "^5.14.1",
|
||||
"eslint-config-standard": "^12.0.0",
|
||||
|
@ -82,5 +83,8 @@
|
|||
"webpack": "^4.29.5",
|
||||
"webpack-cli": "^3.2.3",
|
||||
"webpack-merge": "^4.2.1"
|
||||
}
|
||||
},
|
||||
"browserslist": [
|
||||
"extends browserslist-config-nextcloud"
|
||||
]
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче