Merge pull request #19872 from nextcloud/techdebt/bable-polyfill-to-core-js

Migrate from @babel/polyfill to core-js@3
This commit is contained in:
John Molakvoæ 2020-03-26 16:42:05 +01:00 committed by GitHub
commit 36d76ee94f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 105 additions and 107 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -20,8 +20,6 @@
*
*/
import '@babel/polyfill'
import Vue from 'vue'
import Vuex from 'vuex'
import store from './store'

View File

@ -7,7 +7,9 @@ module.exports = {
[
'@babel/preset-env',
{
modules: false
modules: false,
corejs: 3,
useBuiltIns: false,
}
]
]

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

26
core/js/dist/login.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

60
core/js/dist/main.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -20,8 +20,9 @@
*/
import $ from 'jquery'
import 'core-js/stable'
import 'regenerator-runtime/runtime'
import './Polyfill/index'
import '@babel/polyfill'
// If you remove the line below, tests won't pass
// eslint-disable-next-line no-unused-vars

20
package-lock.json generated
View File

@ -1563,15 +1563,6 @@
}
}
},
"@babel/polyfill": {
"version": "7.7.0",
"resolved": "https://registry.npmjs.org/@babel/polyfill/-/polyfill-7.7.0.tgz",
"integrity": "sha512-/TS23MVvo34dFmf8mwCisCbWGrfhbiWZSwBo6HkADTBhUa2Q/jWltyY/tpofz/b6/RIhqaqQcquptCirqIhOaQ==",
"requires": {
"core-js": "^2.6.5",
"regenerator-runtime": "^0.13.2"
}
},
"@babel/preset-env": {
"version": "7.8.7",
"resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.8.7.tgz",
@ -2870,6 +2861,11 @@
"regenerator-runtime": "^0.11.0"
},
"dependencies": {
"core-js": {
"version": "2.6.11",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.11.tgz",
"integrity": "sha512-5wjnpaT/3dV+XB4borEsnAYQchn00XSgTAWKDkEqv+K8KevjbzmofK6hfJ9TZIlpj2N0xQpazy7PiRQiWHqzWg=="
},
"regenerator-runtime": {
"version": "0.11.1",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz",
@ -3634,9 +3630,9 @@
"integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40="
},
"core-js": {
"version": "2.6.9",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.9.tgz",
"integrity": "sha512-HOpZf6eXmnl7la+cUdMnLvUxKNqLUzJvgIziQ0DiF3JwSImNphIqdGqzj6hIKyX04MmV0poclQ7+wjWvxQyR2A=="
"version": "3.6.4",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.6.4.tgz",
"integrity": "sha512-4paDGScNgZP2IXXilaffL9X7968RuvwlkK3xWtZRVqgd8SYNiVKRJvkFd1aqqEuPfN7E68ZHEp9hDj6lHj4Hyw=="
},
"core-js-compat": {
"version": "3.6.4",

View File

@ -25,7 +25,6 @@
],
"license": "AGPL-3.0-or-later",
"dependencies": {
"@babel/polyfill": "^7.7.0",
"@chenfengyuan/vue-qrcode": "^1.0.2",
"@nextcloud/auth": "^1.2.2",
"@nextcloud/axios": "^1.3.2",
@ -43,6 +42,7 @@
"blueimp-md5": "^2.12.0",
"bootstrap": "^4.4.1",
"clipboard": "^2.0.6",
"core-js": "^3.6.4",
"css-vars-ponyfill": "^2.2.1",
"davclient.js": "git+https://github.com/owncloud/davclient.js.git#0.2.1",
"debounce": "^1.2.0",
@ -63,6 +63,7 @@
"p-limit": "^2.2.2",
"p-queue": "^6.3.0",
"query-string": "^5.1.1",
"regenerator-runtime": "^0.13.3",
"select2": "3.5.1",
"snap.js": "^2.0.9",
"strengthify": "git+https://github.com/MorrisJobke/strengthify.git#0.5.8",