Commit e69d6ae0 authored by Dennis Tang's avatar Dennis Tang

Update vuex.md

parent 7e0af6cf
...@@ -358,7 +358,7 @@ Because we're currently using `babel-plugin-rewire`, you may encounter the follo ...@@ -358,7 +358,7 @@ Because we're currently using `babel-plugin-rewire`, you may encounter the follo
To prevent this error from happening, you need to export an empty function: To prevent this error from happening, you need to export an empty function:
``` ```
// /stores/getters.js or /stores/actions.js // getters.js or actions.js
// prevent babel-plugin-rewire from generating an invalid default during karma tests // prevent babel-plugin-rewire from generating an invalid default during karma tests
export default () => {}; export default () => {};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment