summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2020-04-02 11:07:54 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-04-02 11:20:26 +0200
commite3f87422b66d51def3c1d231e8de7de82fd7965f (patch)
tree76b6fef869d9125cae6206daed492c07bd91ac02
parent4373f156c53f817a5a38f86db341f869369e7481 (diff)
Update babel.config.js
-rw-r--r--Makefile4
-rw-r--r--babel.config.js11
-rw-r--r--src/main.js10
3 files changed, 14 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index e231c96e..1bb15ca4 100644
--- a/Makefile
+++ b/Makefile
@@ -75,9 +75,7 @@ stylelint-fix:
# Cleaning
clean:
- rm -f js/contacts.js
- rm -f js/contacts.js.map
- rm -Rf js/chunks
+ rm -rf js
clean-dev:
rm -rf node_modules
diff --git a/babel.config.js b/babel.config.js
index 8734f52b..5496c985 100644
--- a/babel.config.js
+++ b/babel.config.js
@@ -1,7 +1,14 @@
module.exports = {
plugins: [
'@babel/plugin-syntax-dynamic-import',
- '@babel/plugin-proposal-object-rest-spread'
],
- presets: ['@babel/preset-env']
+ presets: [
+ [
+ '@babel/preset-env',
+ {
+ corejs: 3,
+ useBuiltIns: 'entry',
+ },
+ ],
+ ],
}
diff --git a/src/main.js b/src/main.js
index 58cc554a..0328d5f6 100644
--- a/src/main.js
+++ b/src/main.js
@@ -20,16 +20,14 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-
-import 'core-js/stable'
-
+import { generateFilePath } from '@nextcloud/router'
+import { getRequestToken } from '@nextcloud/auth'
+import { sync } from 'vuex-router-sync'
import Vue from 'vue'
+
import App from './ContactsRoot'
import router from './router'
import store from './store'
-import { sync } from 'vuex-router-sync'
-import { generateFilePath } from '@nextcloud/router'
-import { getRequestToken } from '@nextcloud/auth'
/** GLOBAL COMPONENTS AND DIRECTIVE */
import ClickOutside from 'vue-click-outside'