diff options
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | babel.config.js | 11 | ||||
-rw-r--r-- | src/main.js | 10 |
3 files changed, 14 insertions, 11 deletions
@@ -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' |