Skip to content

Commit

Permalink
Fixed commonjs requirement in lib.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Ap3rtur3 committed Dec 16, 2019
1 parent e5c495c commit d5c507a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Vuex Hydra

> A Vuex plugin to hydrate your stores with external data.
> Vuex plugin to hydrate your stores with external data.
[![NPM](https://img.shields.io/npm/v/vuex-hydra)](https://www.npmjs.com/package/vuex-hydra)
[![MinZip](https://img.shields.io/bundlephobia/min/vuex-hydra)](https://bundlephobia.com/result?p=vuex-hydra)

It can be used for decoupled frontends to instantly access backend data without further API requests.
It can be used for frontends to instantly access backend data without further API requests.
Store data can be passed directly, read from JSON strings or the window object.

Check the examples below for more information.
Expand All @@ -21,7 +21,7 @@ yarn add vuex-hydra
```

Import vuex-hydra into your project,
which makes the `$hydrate` function available in your components
which makes the `$hydrate` function available in all components
```javascript
import Vue from 'vue';
import Vuex from 'vuex';
Expand Down
2 changes: 1 addition & 1 deletion src/lib.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import merge from 'deepmerge';
const merge = require('deepmerge');

let isSilent = false;
const isTestMode = (process && process.env && process.env.NODE_ENV === 'test');
Expand Down

0 comments on commit d5c507a

Please sign in to comment.