Skip to content

Commit

Permalink
Fix import/require of Vue
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Jan 22, 2018
1 parent b4832df commit 360da88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

/* global OC, OCA, $, _, t, define, console */

import Vue from 'vue';

define(function (require) {
"use strict";

Expand All @@ -36,6 +34,7 @@ define(function (require) {
$('form.searchbox').after($('<div>').attr('id', 'notifications'));

// Setup Vue
var Vue = require('vue');
this.vm = new Vue(require('./components/root'));

// Initial call to the notification endpoint
Expand Down
2 changes: 1 addition & 1 deletion js/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module.exports = {
},
resolve: {
alias: {
'vue$': 'vue/dist/vue.esm.js'
'vue': 'vue/dist/vue.js'
}
},
performance: {
Expand Down

0 comments on commit 360da88

Please sign in to comment.