Skip to content

Commit

Permalink
feat(options): move export to plugin field (instead of named export)
Browse files Browse the repository at this point in the history
  • Loading branch information
probil committed Jul 24, 2018
1 parent 2ddbfad commit 7f4960b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import Observer from './Observer';
import GlobalEmitter from './GlobalEmitter';
import mixin from './mixin';
import { isSocketIo } from './utils';
import defaults from './defaults';

export default {
install(Vue, socket, options) {
Expand All @@ -14,4 +15,5 @@ export default {
Vue.prototype.$socket = observer.Socket;
Vue.mixin(mixin(GlobalEmitter));
},
defaults,
};
2 changes: 0 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Main from './Main';
import defaults from './defaults';

export default Main;
export { defaults };

0 comments on commit 7f4960b

Please sign in to comment.