Update babel.config.js

This commit is contained in:
John Molakvoæ 2020-04-02 11:07:54 +02:00 committed by John Molakvoæ (skjnldsv)
parent 4373f156c5
commit e3f87422b6
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
3 changed files with 14 additions and 11 deletions

View File

@ -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

View File

@ -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',
},
],
],
}

View File

@ -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'