Skip to content

Commit b0128d2

Browse files
committed
fix dist build export
1 parent 3fff85f commit b0128d2

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

examples/todomvc/vuex/middlewares.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { STORAGE_KEY } from './store'
2-
import { createLogger } from '../../../src'
2+
import Vuex from '../../../src'
33

44
const localStorageMiddleware = {
55
onMutation (mutation, { todos }) {
@@ -8,5 +8,5 @@ const localStorageMiddleware = {
88
}
99

1010
export default process.env.NODE_ENV !== 'production'
11-
? [createLogger(), localStorageMiddleware]
11+
? [Vuex.createLogger(), localStorageMiddleware]
1212
: [localStorageMiddleware]

src/index.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import override from './override'
55

66
let Vue
77

8-
export class Store {
8+
class Store {
99

1010
/**
1111
* @param {Object} options
@@ -245,12 +245,6 @@ function install (_Vue) {
245245
override(Vue)
246246
}
247247

248-
export {
249-
install,
250-
createLogger
251-
}
252-
253-
// also export the default
254248
export default {
255249
Store,
256250
install,

0 commit comments

Comments
 (0)